PowerSNMP for .NET
FormatValue Method




Returns the value of the variable in a human-readable format according to the display-hint in the variable's MibNode definition.
Syntax
Public Function FormatValue() As String
Dim instance As Variable
Dim value As String
 
value = instance.FormatValue()
public string FormatValue()
public: string* FormatValue(); 
public:
String^ FormatValue(); 
Remarks

This method formats Value according to Variable.Definition.DisplayHint. If the display-hint is unavailable or the underlying Value type does not support display-hint this method will return Variable.Value.ToString().

When a message is received, Definition will be automatically populated if Agent.Mib or Manager.Mib contains a definition for the OID.

See Also

Reference

Variable Class
Variable Members

6.1.1.2
PowerSNMP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic