Class GetNextRequestMessage
- Namespace
- Lextm.SharpSnmpLib.Messaging
- Assembly
- SharpSnmpLib.dll
GETNEXT request message.
public sealed class GetNextRequestMessage : ISnmpMessage
- Inheritance
-
GetNextRequestMessage
- Implements
- Inherited Members
- Extension Methods
Constructors
GetNextRequestMessage(VersionCode, int, int, OctetString, OctetString, IList<Variable>, IPrivacyProvider, int, ISnmpMessage)
Initializes a new instance of the GetNextRequestMessage class.
public GetNextRequestMessage(VersionCode version, int messageId, int requestId, OctetString userName, OctetString contextName, IList<Variable> variables, IPrivacyProvider privacy, int maxMessageSize, ISnmpMessage report)
Parameters
version
VersionCodeThe version.
messageId
intThe message id.
requestId
intThe request id.
userName
OctetStringName of the user.
contextName
OctetStringContext name.
variables
IList<Variable>The variables.
privacy
IPrivacyProviderThe privacy provider.
maxMessageSize
intSize of the max message.
report
ISnmpMessageThe report.
GetNextRequestMessage(VersionCode, int, int, OctetString, IList<Variable>, IPrivacyProvider, ISnmpMessage)
Initializes a new instance of the GetNextRequestMessage class.
[Obsolete("Please use other overloading ones.")]
public GetNextRequestMessage(VersionCode version, int messageId, int requestId, OctetString userName, IList<Variable> variables, IPrivacyProvider privacy, ISnmpMessage report)
Parameters
version
VersionCodeThe version.
messageId
intThe message id.
requestId
intThe request id.
userName
OctetStringName of the user.
variables
IList<Variable>The variables.
privacy
IPrivacyProviderThe privacy provider.
report
ISnmpMessageThe report.
GetNextRequestMessage(VersionCode, int, int, OctetString, IList<Variable>, IPrivacyProvider, int, ISnmpMessage)
Initializes a new instance of the GetNextRequestMessage class.
[Obsolete("Please use other overloading ones.")]
public GetNextRequestMessage(VersionCode version, int messageId, int requestId, OctetString userName, IList<Variable> variables, IPrivacyProvider privacy, int maxMessageSize, ISnmpMessage report)
Parameters
version
VersionCodeThe version.
messageId
intThe message id.
requestId
intThe request id.
userName
OctetStringName of the user.
variables
IList<Variable>The variables.
privacy
IPrivacyProviderThe privacy provider.
maxMessageSize
intSize of the max message.
report
ISnmpMessageThe report.
GetNextRequestMessage(int, VersionCode, OctetString, IList<Variable>)
Creates a GetNextRequestMessage with all contents.
public GetNextRequestMessage(int requestId, VersionCode version, OctetString community, IList<Variable> variables)
Parameters
requestId
intThe request id.
version
VersionCodeProtocol version
community
OctetStringCommunity name
variables
IList<Variable>Variables
Properties
Header
Gets the header.
public Header Header { get; }
Property Value
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 GetNextRequestMessage.
public override string ToString()