C# Класс SnmpSharpNet.EthernetAddress

Наследование: OctetString, ICloneable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Clone ( ) : Object

Create a new object that is a duplicate of the current object.

EthernetAddress ( ) : System

Constructor. Initialize the class to 0000.0000.0000

EthernetAddress ( EthernetAddress second ) : System

Constructor. Initialize the class with the value from the argument class.

EthernetAddress ( OctetString second ) : System

Constructor. Initialize the class with the value from the OctetString argument.

EthernetAddress ( byte data ) : System

Constructor. Initialize the class with the value of the byte array.

Set ( System value ) : void

Parses hex string representing an Ethernet MAC address to the enternal format. Ethernet address has to contain 12 hex characters (1-9 or A-F) to be parsed correctly. Special formatting is ignored so both 0000.0010.0000 and 00-00-00-10-00-00 will be parsed ok.

ToString ( ) : System.String

Return Ethernet MAC address as a string formatted as: xxxx.xxxx.xxxx

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

Clone() публичный Метод

Create a new object that is a duplicate of the current object.
public Clone ( ) : Object
Результат System.Object

EthernetAddress() публичный Метод

Constructor. Initialize the class to 0000.0000.0000
public EthernetAddress ( ) : System
Результат System

EthernetAddress() публичный Метод

Constructor. Initialize the class with the value from the argument class.
public EthernetAddress ( EthernetAddress second ) : System
second EthernetAddress Class whose value is copied to initialize this class. ///
Результат System

EthernetAddress() публичный Метод

Constructor. Initialize the class with the value from the OctetString argument.
public EthernetAddress ( OctetString second ) : System
second OctetString Class whose value is used to initialize this class. ///
Результат System

EthernetAddress() публичный Метод

Constructor. Initialize the class with the value of the byte array.
public EthernetAddress ( byte data ) : System
data byte Byte array whose value is used to initialize the class. ///
Результат System

Set() публичный Метод

Parses hex string representing an Ethernet MAC address to the enternal format. Ethernet address has to contain 12 hex characters (1-9 or A-F) to be parsed correctly. Special formatting is ignored so both 0000.0010.0000 and 00-00-00-10-00-00 will be parsed ok.
public Set ( System value ) : void
value System Ethernet address represented as a string. ///
Результат void

ToString() публичный Метод

Return Ethernet MAC address as a string formatted as: xxxx.xxxx.xxxx
public ToString ( ) : System.String
Результат System.String