PowerSNMP for .NET
CreateVariable(Enum) Method




A NodeName enum member that correlates to an intrinsic or imported MibNode.
Creates a variable from the specified NodeName.
Syntax
Public Overloads Function CreateVariable( _
   ByVal nodeName As Enum _
) As Variable
Dim instance As MibNodes
Dim nodeName As Enum
Dim value As Variable
 
value = instance.CreateVariable(nodeName)
public Variable CreateVariable( 
   Enum nodeName
)
public: Variable* CreateVariable( 
   Enum* nodeName
) 
public:
Variable^ CreateVariable( 
   Enum^ nodeName
) 

Parameters

nodeName
A NodeName enum member that correlates to an intrinsic or imported MibNode.

Return Value

A Variable with an empty value
Remarks

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

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