PowerSNMP for .NET
Variable Constructor(MibNode,String,String)




When used for table entries, a table column MibNode providing a definition for the Variable.
A string representation of the value. Use null or an empty string when creating messages requesting the value.
Appended to definition.Oid to initialize Id, typically a 1-based table row indexer.
Creates a Variable with an optional value. Used for table entries.
Syntax
Public Function New( _
   ByVal definition As MibNode, _
   ByVal value As String, _
   ByVal indexer As String _
)
Dim definition As MibNode
Dim value As String
Dim indexer As String
 
Dim instance As New Variable(definition, value, indexer)
public Variable( 
   MibNode definition,
   string value,
   string indexer
)

Parameters

definition
When used for table entries, a table column MibNode providing a definition for the Variable.
value
A string representation of the value. Use null or an empty string when creating messages requesting the value.
indexer
Appended to definition.Oid to initialize Id, typically a 1-based table row indexer.
Exceptions
ExceptionDescription
System.ArgumentExceptionThrown if definition does not have a valid ValueType property value.
Remarks

This constructor is intended for use with tables, but can be used for scalar MibNodes as well. Use a "0" indexer to identify a scalar value (definition.Usage is Usage.Object) or use a table row indexer to identify a table entry (definition.Usage is Usage.TableColumn).

value will be automatically converted into the relevant SimpleType as defined by definition.ValueType, populating Value. Definition will be populated with definition.

See Also

Reference

Variable Class
Variable Members
Overload List


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