Class Scope
- Namespace
- Lextm.SharpSnmpLib
- Assembly
- SharpSnmpLib.dll
Scope segment.
public sealed class Scope : ISegment
- Inheritance
-
Scope
- Implements
- Inherited Members
Constructors
Scope(ISnmpPdu)
Initializes a new instance of the Scope class.
public Scope(ISnmpPdu pdu)
Parameters
pdu
ISnmpPduThe PDU.
Scope(OctetString, OctetString, ISnmpPdu)
Initializes a new instance of the Scope class.
public Scope(OctetString contextEngineId, OctetString contextName, ISnmpPdu pdu)
Parameters
contextEngineId
OctetStringThe context engine ID.
contextName
OctetStringName of the context.
pdu
ISnmpPduThe PDU.
Scope(Sequence)
Initializes a new instance of the Scope class.
public Scope(Sequence data)
Parameters
data
SequenceThe data.
Properties
ContextEngineId
Gets or sets the context engine id.
public OctetString? ContextEngineId { get; }
Property Value
- OctetString
The context engine id.
ContextName
Gets or sets the name of the context.
public OctetString? ContextName { get; }
Property Value
- OctetString
The name of the context.
Pdu
Gets the PDU.
public ISnmpPdu Pdu { get; }
Property Value
- ISnmpPdu
The PDU.
Methods
GetData(VersionCode)
Gets the data.
public ISnmpData GetData(VersionCode version)
Parameters
version
VersionCodeThe version.
Returns
ToSequence()
Converts to Sequence object.
public Sequence ToSequence()