C# Класс SnmpSharpNet.SMIDataType

Collection of static helper methods making operations with SMI data types simpler and easier.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
SMIDataType ( ) : System

Описание методов

GetSyntaxObject() публичный статический Метод

Used to create correct variable type object for the specified encoded type
public static GetSyntaxObject ( SMIDataTypeCode asnType ) : AsnType
asnType SMIDataTypeCode ASN.1 type code
Результат AsnType

GetSyntaxObject() публичный статический Метод

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
Результат AsnType

GetSyntaxObject() публичный статический Метод

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)
Результат AsnType

GetTypeName() публичный статический Метод

Return string representation of the SMI value type.
public static GetTypeName ( SMIDataTypeCode type ) : string
type SMIDataTypeCode AsnType class Type member function value.
Результат string

IsValidType() публичный статический Метод

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
Результат bool