Class InformRequestPdu
- Namespace
- Lextm.SharpSnmpLib
- Assembly
- SharpSnmpLib.dll
INFORM request PDU.
public sealed class InformRequestPdu : ISnmpPdu, ISnmpData
- Inheritance
-
InformRequestPdu
- Implements
- Inherited Members
- Extension Methods
Constructors
InformRequestPdu(int)
Creates a InformRequestPdu instance for discovery.
public InformRequestPdu(int requestId)
Parameters
requestId
intThe request id.
InformRequestPdu(int, ObjectIdentifier, uint, IList<Variable>)
Creates a InformRequestPdu instance with all content.
[CLSCompliant(false)]
public InformRequestPdu(int requestId, ObjectIdentifier enterprise, uint time, IList<Variable> variables)
Parameters
requestId
intThe request id.
enterprise
ObjectIdentifierEnterprise
time
uintTime stamp
variables
IList<Variable>Variables
InformRequestPdu(Tuple<int, byte[]>, Stream)
Initializes a new instance of the InformRequestPdu class.
public InformRequestPdu(Tuple<int, byte[]> length, Stream stream)
Parameters
Properties
Enterprise
Gets the enterprise.
public ObjectIdentifier? Enterprise { get; }
Property Value
- ObjectIdentifier
The enterprise.
ErrorIndex
Gets the index of the error.
public Integer32 ErrorIndex { get; }
Property Value
- Integer32
The index of the error.
ErrorStatus
Gets the error status.
public Integer32 ErrorStatus { get; }
Property Value
- Integer32
The error status.
RequestId
Gets the request ID.
public Integer32 RequestId { get; }
Property Value
- Integer32
The request ID.
TimeStamp
Gets the time stamp.
[CLSCompliant(false)]
public uint TimeStamp { get; }
Property Value
- uint
The time stamp.
TypeCode
Type code.
public SnmpType TypeCode { get; }
Property Value
Variables
Variables.
public IList<Variable> Variables { get; }
Property Value
Methods
AppendBytesTo(Stream)
Appends the bytes to Stream.
public void AppendBytesTo(Stream stream)
Parameters
stream
StreamThe stream.
Decorate(IList<Variable>)
Decorates a list of Variable objects with time and enterprise ID.
public IList<Variable> Decorate(IList<Variable> variables)
Parameters
Returns
ToString()
Returns a string that represents this InformRequestPdu.
public override string ToString()