C# Class SnmpSharpNet.SnmpError

Helper returns error messages for SNMP v1 and v2 error codes
Helper class provides translation of SNMP version 1 and 2 error status codes to short, descriptive error messages. To use, call the static member SnmpError.ErrorMessage. Example: Console.WriteLine("Agent error: {0}",SnmpError.ErrorMessage(12));
ファイルを表示 Open project: griffina/SnmpSharpNet

Public Methods

Method Description
ErrorMessage ( int errorCode ) : string

Return SNMP version 1 and 2 error code (errorCode field in the Pdu class) as a short, descriptive string.

Private Methods

Method Description
SnmpError ( )

Private constructor.

Method Details

ErrorMessage() public static method

Return SNMP version 1 and 2 error code (errorCode field in the Pdu class) as a short, descriptive string.
public static ErrorMessage ( int errorCode ) : string
errorCode int Error code sent by the agent
return string