Table of Contents

Class InformRequestMessage

Namespace
Lextm.SharpSnmpLib.Messaging
Assembly
SharpSnmpLib.dll

INFORM request message.

public sealed class InformRequestMessage : ISnmpMessage
Inheritance
InformRequestMessage
Implements
Inherited Members
Extension Methods

Constructors

InformRequestMessage(VersionCode, int, int, OctetString, ObjectIdentifier, uint, IList<Variable>, IPrivacyProvider, ISnmpMessage)

Initializes a new instance of the InformRequestMessage class.

[CLSCompliant(false)]
[Obsolete("Please use other overloading ones.")]
public InformRequestMessage(VersionCode version, int messageId, int requestId, OctetString userName, ObjectIdentifier enterprise, uint time, IList<Variable> variables, IPrivacyProvider privacy, ISnmpMessage report)

Parameters

version VersionCode

The version.

messageId int

The message id.

requestId int

The request id.

userName OctetString

Name of the user.

enterprise ObjectIdentifier

The enterprise.

time uint

The time.

variables IList<Variable>

The variables.

privacy IPrivacyProvider

The privacy provider.

report ISnmpMessage

The report.

InformRequestMessage(VersionCode, int, int, OctetString, ObjectIdentifier, uint, IList<Variable>, IPrivacyProvider, int, ISnmpMessage)

Initializes a new instance of the InformRequestMessage class.

[CLSCompliant(false)]
[Obsolete("Please use other overloading ones.")]
public InformRequestMessage(VersionCode version, int messageId, int requestId, OctetString userName, ObjectIdentifier enterprise, uint time, IList<Variable> variables, IPrivacyProvider privacy, int maxMessageSize, ISnmpMessage report)

Parameters

version VersionCode

The version.

messageId int

The message id.

requestId int

The request id.

userName OctetString

Name of the user.

enterprise ObjectIdentifier

The enterprise.

time uint

The time.

variables IList<Variable>

The variables.

privacy IPrivacyProvider

The privacy provider.

maxMessageSize int

Size of the max message.

report ISnmpMessage

The report.

InformRequestMessage(VersionCode, int, int, OctetString, OctetString, ObjectIdentifier, uint, IList<Variable>, IPrivacyProvider, int, ISnmpMessage)

Initializes a new instance of the InformRequestMessage class.

[CLSCompliant(false)]
public InformRequestMessage(VersionCode version, int messageId, int requestId, OctetString userName, OctetString contextName, ObjectIdentifier enterprise, uint time, IList<Variable> variables, IPrivacyProvider privacy, int maxMessageSize, ISnmpMessage report)

Parameters

version VersionCode

The version.

messageId int

The message id.

requestId int

The request id.

userName OctetString

Name of the user.

contextName OctetString

The context name.

enterprise ObjectIdentifier

The enterprise.

time uint

The time.

variables IList<Variable>

The variables.

privacy IPrivacyProvider

The privacy provider.

maxMessageSize int

Size of the max message.

report ISnmpMessage

The report.

InformRequestMessage(int, VersionCode, OctetString, ObjectIdentifier, uint, IList<Variable>)

Creates a InformRequestMessage with all contents.

[CLSCompliant(false)]
public InformRequestMessage(int requestId, VersionCode version, OctetString community, ObjectIdentifier enterprise, uint time, IList<Variable> variables)

Parameters

requestId int

The request id.

version VersionCode

Protocol version.

community OctetString

Community name.

enterprise ObjectIdentifier

Enterprise.

time uint

Time ticks.

variables IList<Variable>

Variables.

Properties

Enterprise

Enterprise.

public ObjectIdentifier? Enterprise { get; }

Property Value

ObjectIdentifier

Header

Gets the header.

public Header Header { get; }

Property Value

Header

Parameters

Gets the parameters.

public SecurityParameters Parameters { get; }

Property Value

SecurityParameters

The parameters.

Privacy

Gets the privacy provider.

public IPrivacyProvider Privacy { get; }

Property Value

IPrivacyProvider

The privacy provider.

Scope

Gets the scope.

public Scope Scope { get; }

Property Value

Scope

The scope.

TimeStamp

Gets the time stamp.

[CLSCompliant(false)]
public uint TimeStamp { get; }

Property Value

uint

The time stamp.

Version

Gets the version.

public VersionCode Version { get; }

Property Value

VersionCode

The version.

Methods

ToBytes()

Converts to byte format.

public byte[] ToBytes()

Returns

byte[]

ToString()

Returns a string that represents this InformRequestMessage.

public override string ToString()

Returns

string