PowerSNMP for .NET CF
SysUpTime Property
See Also  Send comments on this topic.
Dart.Snmp Namespace > MessageBase Class : SysUpTime Property




Gets or sets the time since the agent was reinitialized, in hundredths of a second.

Syntax

Visual Basic (Declaration) 
Public Shared Property SysUpTime As Long
Visual Basic (Usage)Copy Code
Dim value As Long
 
MessageBase.SysUpTime = value
 
value = MessageBase.SysUpTime
C# 
public static long SysUpTime {get; set;}
Managed Extensions for C++ 
public: __property static long get_SysUpTime();
public: __property static void set_SysUpTime( 
   long value
);
C++/CLI 
public:
static property int64 SysUpTime {
   int64 get();
   void set (    int64 value);
}

Property Value

This property is initialized to 0 when the library is loaded (normally at the time your application starts).

Remarks

This value is used to initialize TrapMessage.SysUpTime and SysUpTime when they are encoded.

This value is also used by the ResponseMessage.ResponseMessage Constructor(RequestMessage,VariableList) constructor when creating a ResponseMessage if MessageBase.Variables contains a sysUpTime Variable.

Applications can set this property to other values to indicate the Agent has been up for a different length of time.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.