C# Class SnmpSharpNet.SMIDataType

Collection of static helper methods making operations with SMI data types simpler and easier.
Exibir arquivo Open project: griffina/SnmpSharpNet Class Usage Examples

Public Methods

Method Description
GetSyntaxObject ( SMIDataTypeCode asnType ) : AsnType

Used to create correct variable type object for the specified encoded type

GetSyntaxObject ( byte asnType ) : AsnType

Get class instance for the SMI value type with the specific TLV encoding type code.

GetSyntaxObject ( string name ) : AsnType

Return SNMP type object of the type specified by name. Supported variable types are: Integer32, Counter32, Gauge32, Counter64, TimeTicks, OctetString, IpAddress, Oid, and Null. Type names are the same as support class names compared without case sensitivity (e.g. Integer == INTEGER).

GetTypeName ( SMIDataTypeCode type ) : string

Return string representation of the SMI value type.

IsValidType ( byte smiType ) : bool

Check if byte code is a valid SMI data type code

Private Methods

Method Description
SMIDataType ( ) : System

Method Details

GetSyntaxObject() public static method

Used to create correct variable type object for the specified encoded type
public static GetSyntaxObject ( SMIDataTypeCode asnType ) : AsnType
asnType SMIDataTypeCode ASN.1 type code
return AsnType

GetSyntaxObject() public static method

Get class instance for the SMI value type with the specific TLV encoding type code.
public static GetSyntaxObject ( byte asnType ) : AsnType
asnType byte SMI type code
return AsnType

GetSyntaxObject() public static method

Return SNMP type object of the type specified by name. Supported variable types are: Integer32, Counter32, Gauge32, Counter64, TimeTicks, OctetString, IpAddress, Oid, and Null. Type names are the same as support class names compared without case sensitivity (e.g. Integer == INTEGER).
public static GetSyntaxObject ( string name ) : AsnType
name string Name of the object type (not case sensitive)
return AsnType

GetTypeName() public static method

Return string representation of the SMI value type.
public static GetTypeName ( SMIDataTypeCode type ) : string
type SMIDataTypeCode AsnType class Type member function value.
return string

IsValidType() public static method

Check if byte code is a valid SMI data type code
public static IsValidType ( byte smiType ) : bool
smiType byte SMI data type code to test
return bool