PowerSNMP for .NET
CreateVariable(Enum,String,String) Method




A table column's NodeName enum member that correlates to an intrinsic or imported MibNode.
A string representation of the value.
Row indexer to use to construct the Variable.
Creates a table cell variable from the specified NodeName, value, and row indexer.
Syntax
Public Overloads Function CreateVariable( _
   ByVal nodeName As Enum, _
   ByVal value As String, _
   ByVal indexer As String _
) As Variable
Dim instance As MibNodes
Dim nodeName As Enum
Dim value As String
Dim indexer As String
Dim value As Variable
 
value = instance.CreateVariable(nodeName, value, indexer)
public Variable CreateVariable( 
   Enum nodeName,
   string value,
   string indexer
)
public: Variable* CreateVariable( 
   Enum* nodeName,
   string* value,
   string* indexer
) 
public:
Variable^ CreateVariable( 
   Enum^ nodeName,
   String^ value,
   String^ indexer
) 

Parameters

nodeName
A table column's NodeName enum member that correlates to an intrinsic or imported MibNode.
value
A string representation of the value.
indexer
Row indexer to use to construct the Variable.

Return Value

A Variable with the specified value
Remarks

The value argument will be automatically converted into a SimpleType as applicable for the specified nodeName.

Intrinsic node names are provided by the NodeName enumeration. Node names from imported MIB code files are provided by the code file's Mib.NodeName enumeration.

Variables cannot be created with this method for objects defined in MIBs loaded at runtime; use a Variable constructor for this scenario. See Agent.Variables for a demonstration of creating variables from dynamically loaded MIBs.

See Also

Reference

MibNodes Class
MibNodes Members
Overload List


PowerSNMP for .NET Documentation Version 8.0
© 2024 Dart Communications. All Rights Reserved.
Send comments on this topic