Table of Contents

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 ISnmpPdu

The PDU.

Scope(OctetString, OctetString, ISnmpPdu)

Initializes a new instance of the Scope class.

public Scope(OctetString contextEngineId, OctetString contextName, ISnmpPdu pdu)

Parameters

contextEngineId OctetString

The context engine ID.

contextName OctetString

Name of the context.

pdu ISnmpPdu

The PDU.

Scope(Sequence)

Initializes a new instance of the Scope class.

public Scope(Sequence data)

Parameters

data Sequence

The 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 VersionCode

The version.

Returns

ISnmpData

ToSequence()

Converts to Sequence object.

public Sequence ToSequence()

Returns

Sequence