C# 클래스 SnmpSharpNet.EthernetAddress

상속: OctetString, ICloneable
파일 보기 프로젝트 열기: griffina/SnmpSharpNet 1 사용 예제들

공개 메소드들

메소드 설명
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