Class ReportPdu
- Namespace
- Lextm.SharpSnmpLib
- Assembly
- SharpSnmpLib.dll
Report PDU.
public sealed class ReportPdu : ISnmpPdu, ISnmpData
- Inheritance
-
ReportPdu
- Implements
- Inherited Members
- Extension Methods
Constructors
ReportPdu(int, ErrorCode, int, IList<Variable>)
Creates a ReportPdu with all contents.
public ReportPdu(int requestId, ErrorCode errorStatus, int errorIndex, IList<Variable> variables)
Parameters
requestId
intThe request id.
errorStatus
ErrorCodeError status
errorIndex
intError index
variables
IList<Variable>Variables
ReportPdu(Tuple<int, byte[]>, Stream)
Initializes a new instance of the ReportPdu class.
public ReportPdu(Tuple<int, byte[]> length, Stream stream)
Parameters
Properties
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.
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.
ToString()
public override string ToString()