MessengerWalkAsync(VersionCode, IPEndPoint, OctetString, ObjectIdentifier, IListVariable, WalkMode, CancellationToken) Method |
Walks (based on GET NEXT).
Namespace: Lextm.SharpSnmpLib.MessagingAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static Task<int> WalkAsync(
VersionCode version,
IPEndPoint endpoint,
OctetString community,
ObjectIdentifier table,
IList<Variable> list,
WalkMode mode,
CancellationToken token
)
Public Shared Function WalkAsync (
version As VersionCode,
endpoint As IPEndPoint,
community As OctetString,
table As ObjectIdentifier,
list As IList(Of Variable),
mode As WalkMode,
token As CancellationToken
) As Task(Of Integer)
Dim version As VersionCode
Dim endpoint As IPEndPoint
Dim community As OctetString
Dim table As ObjectIdentifier
Dim list As IList(Of Variable)
Dim mode As WalkMode
Dim token As CancellationToken
Dim returnValue As Task(Of Integer)
returnValue = Messenger.WalkAsync(version,
endpoint, community, table, list,
mode, token)
public:
static Task<int>^ WalkAsync(
VersionCode version,
IPEndPoint^ endpoint,
OctetString^ community,
ObjectIdentifier^ table,
IList<Variable^>^ list,
WalkMode mode,
CancellationToken token
)
static member WalkAsync :
version : VersionCode *
endpoint : IPEndPoint *
community : OctetString *
table : ObjectIdentifier *
list : IList<Variable> *
mode : WalkMode *
token : CancellationToken -> Task<int>
Parameters
- version VersionCode
- Protocol version.
- endpoint IPEndPoint
- Endpoint.
- community OctetString
- Community name.
- table ObjectIdentifier
- OID.
- list IListVariable
- A list to hold the results.
- mode WalkMode
- Walk mode.
- token CancellationToken
- The cancellation token.
Return Value
TaskInt32
Returns row count if the OID is a table. Otherwise this value is meaningless.
RemarksThis method only supports SNMP v1 and v2c.
See Also