Dart.Snmp Namespace > Variable Class > Variable Constructor : Variable Constructor(MibNode,String) |
Public Function New( _ ByVal definition As MibNode, _ ByVal value As String _ )
public Variable( MibNode definition, string value )
public: Variable( MibNode* definition, string* value )
public: Variable( MibNode^ definition, String^ value )
Exception | Description |
---|---|
System.ArgumentException | Thrown if definition is not a scalar object. MibNode.Usage must be Usage.Object. |
System.ArgumentException | Thrown if definition does not have a valid ValueType property value. |
Used to populate the variables collection of SetMessage, InformMessage, Trap1Message or Trap2Message, and for populating Agent.Variables. Use Variable Constructor(MibNode,String,String) to build non-scalar table values.
value will be automatically converted into the relevant SimpleType as defined by definition.ValueType, populating Value. Definition will be populated with definition. definition.Oid + ".0" is used to initialize Id.