Table of Contents

Class SetRequestMessage

Namespace
Lextm.SharpSnmpLib.Messaging
Assembly
SharpSnmpLib.dll

SET request message.

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

Constructors

SetRequestMessage(VersionCode, int, int, OctetString, OctetString, IList<Variable>, IPrivacyProvider, int, ISnmpMessage)

Initializes a new instance of the SetRequestMessage class.

public SetRequestMessage(VersionCode version, int messageId, int requestId, OctetString userName, OctetString contextName, 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.

variables IList<Variable>

The variables.

privacy IPrivacyProvider

The privacy provider.

maxMessageSize int

Size of the max message.

report ISnmpMessage

The report.

SetRequestMessage(VersionCode, int, int, OctetString, IList<Variable>, IPrivacyProvider, ISnmpMessage)

Initializes a new instance of the SetRequestMessage class.

[Obsolete("Please use other overloading ones.")]
public SetRequestMessage(VersionCode version, int messageId, int requestId, OctetString userName, 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.

variables IList<Variable>

The variables.

privacy IPrivacyProvider

The privacy provider.

report ISnmpMessage

The report.

SetRequestMessage(VersionCode, int, int, OctetString, IList<Variable>, IPrivacyProvider, int, ISnmpMessage)

Initializes a new instance of the SetRequestMessage class.

[Obsolete("Please use other overloading ones.")]
public SetRequestMessage(VersionCode version, int messageId, int requestId, OctetString userName, 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.

variables IList<Variable>

The variables.

privacy IPrivacyProvider

The privacy provider.

maxMessageSize int

Size of the max message.

report ISnmpMessage

The report.

SetRequestMessage(int, VersionCode, OctetString, IList<Variable>)

Creates a SetRequestMessage with all contents.

public SetRequestMessage(int requestId, VersionCode version, OctetString community, IList<Variable> variables)

Parameters

requestId int

The request id.

version VersionCode

Protocol version

community OctetString

Community name

variables IList<Variable>

Variables

Properties

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.

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 SetRequestMessage.

public override string ToString()

Returns

string