Class TrapV1Message
- Namespace
- Lextm.SharpSnmpLib.Messaging
- Assembly
- SharpSnmpLib.dll
Trap message.
public sealed class TrapV1Message : ISnmpMessage
- Inheritance
-
TrapV1Message
- Implements
- Inherited Members
- Extension Methods
Constructors
TrapV1Message(Sequence)
Creates a TrapV1Message instance with a message body.
public TrapV1Message(Sequence body)
Parameters
body
SequenceMessage body
TrapV1Message(VersionCode, IPAddress, OctetString, ObjectIdentifier, GenericCode, int, uint, IList<Variable>)
Creates a TrapV1Message with all content.
[CLSCompliant(false)]
public TrapV1Message(VersionCode version, IPAddress agent, OctetString community, ObjectIdentifier enterprise, GenericCode generic, int specific, uint time, IList<Variable> variables)
Parameters
version
VersionCodeProtocol version
agent
IPAddressAgent address
community
OctetStringCommunity name
enterprise
ObjectIdentifierEnterprise
generic
GenericCodeGeneric
specific
intSpecific
time
uintTime
variables
IList<Variable>Variables
Properties
AgentAddress
Agent address.
public IPAddress AgentAddress { get; }
Property Value
Community
Community name.
public OctetString Community { get; }
Property Value
Enterprise
Enterprise.
public ObjectIdentifier Enterprise { get; }
Property Value
Generic
Generic type.
public GenericCode Generic { 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.
Remarks
TrapV1Message returns null here.
Privacy
Gets the privacy provider.
public IPrivacyProvider Privacy { get; }
Property Value
Scope
Gets the scope.
public Scope Scope { get; }
Property Value
- Scope
The scope.
Remarks
TrapV1Message returns null here.
Specific
Specific type.
public int Specific { get; }
Property Value
TimeStamp
Time stamp.
[CLSCompliant(false)]
public uint TimeStamp { get; }
Property Value
Version
Protocol version.
public VersionCode Version { get; }
Property Value
Methods
ToBytes()
To byte format.
public byte[] ToBytes()
Returns
- byte[]
ToString()
Returns a string that represents the current TrapV1Message.
public override string ToString()