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
VersionCodeThe version.
messageId
intThe message id.
requestId
intThe request id.
userName
OctetStringName of the user.
enterprise
ObjectIdentifierThe enterprise.
time
uintThe time.
variables
IList<Variable>The variables.
privacy
IPrivacyProviderThe privacy provider.
report
ISnmpMessageThe 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
VersionCodeThe version.
messageId
intThe message id.
requestId
intThe request id.
userName
OctetStringName of the user.
enterprise
ObjectIdentifierThe enterprise.
time
uintThe time.
variables
IList<Variable>The variables.
privacy
IPrivacyProviderThe privacy provider.
maxMessageSize
intSize of the max message.
report
ISnmpMessageThe 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
VersionCodeThe version.
messageId
intThe message id.
requestId
intThe request id.
userName
OctetStringName of the user.
contextName
OctetStringThe context name.
enterprise
ObjectIdentifierThe enterprise.
time
uintThe time.
variables
IList<Variable>The variables.
privacy
IPrivacyProviderThe privacy provider.
maxMessageSize
intSize of the max message.
report
ISnmpMessageThe 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
intThe request id.
version
VersionCodeProtocol version.
community
OctetStringCommunity name.
enterprise
ObjectIdentifierEnterprise.
time
uintTime ticks.
variables
IList<Variable>Variables.
Properties
Enterprise
Enterprise.
public ObjectIdentifier? Enterprise { get; }
Property Value
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.
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()