PowerSNMP for .NET
GetByNodeName Method (VariableCollection)




NodeName of the desired Variable(s).
Returns the Variable(s) that match the specified NodeName.
Syntax
Public Function GetByNodeName( _
   ByVal nodeName As Enum _
) As Variable()
Dim instance As VariableCollection
Dim nodeName As Enum
Dim value() As Variable
 
value = instance.GetByNodeName(nodeName)
public Variable[] GetByNodeName( 
   Enum nodeName
)
public: Variable*[]* GetByNodeName( 
   Enum* nodeName
) 
public:
array<Variable^>^ GetByNodeName( 
   Enum^ nodeName
) 

Parameters

nodeName
NodeName of the desired Variable(s).

Return Value

An array of Variables that match the specified NodeName.
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. Use GetByName when using MIB files loaded at runtime.

Returns an empty array if the receiving Agent or Manager's Mib does not contain a MibNode definition for the specified NodeName.

See Also

Reference

VariableCollection Class
VariableCollection Members


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