Dart.Snmp Namespace > MibNodes Class > CreateVariable Method : CreateVariable(Enum,String,String) Method |
Public Overloads Function CreateVariable( _ ByVal nodeName As Enum, _ ByVal value As String, _ ByVal indexer As String _ ) As Variable
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.