Table of Contents

Class Variable

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

Variable bind.

public sealed class Variable
Inheritance
Variable
Inherited Members

Remarks

Represents SNMP variable bind.

Constructors

Variable(ObjectIdentifier, ISnmpData?)

Creates a Variable instance with a specific object identifier and data.

public Variable(ObjectIdentifier id, ISnmpData? data = null)

Parameters

id ObjectIdentifier

Object identifier

data ISnmpData

Data

Remarks

If you set null to data, you get a Variable instance whose Data is a Null instance.

Variable(uint[])

Creates a Variable instance with a specific object identifier.

[CLSCompliant(false)]
public Variable(uint[] id)

Parameters

id uint[]

Object identifier

Variable(uint[], ISnmpData?)

Creates a Variable instance with a specific ObjectIdentifier and ISnmpData.

[CLSCompliant(false)]
public Variable(uint[] id, ISnmpData? data)

Parameters

id uint[]

Object identifier

data ISnmpData

Data

Remarks

If you set null to data, you get a Variable instance whose Data is a Null instance.

Properties

Data

Variable data.

public ISnmpData Data { get; }

Property Value

ISnmpData

Id

Variable object identifier.

public ObjectIdentifier Id { get; }

Property Value

ObjectIdentifier

Methods

ToString()

Returns a string that represents this Variable.

public override string ToString()

Returns

string