C# 클래스 Sage.Configuration.IpAddress

Provides a structure for storing and comparing IP addresses and ranges.
상속: IXmlConvertible
파일 보기 프로젝트 열기: igorfrance/sage 1 사용 예제들

공개 메소드들

메소드 설명
Equals ( IpAddress other ) : bool

Compares this ip address with another ip address.

Equals ( object obj ) : bool
FromNumber ( uint address ) : string

Gets the string representation of the specified address.

FromString ( string address ) : uint

Converts the specified address from string to a 32bit integer.

GetHashCode ( ) : int
IpAddress ( XmlElement configElement ) : System

Initializes a new instance of the IpAddress class.

IpAddress ( string address ) : System

Initializes a new instance of the IpAddress class, using the specified address string to initialize it's Address property.

IpAddress ( string address, string to ) : System

Initializes a new instance of the IpAddress class, using the specified address and to strings to initialize it's Address and To properties.

Matches ( string address ) : bool

Matches this IpAddress with the specified address.

Parse ( XmlElement element ) : void
ToString ( ) : string
ToXml ( XmlDocument document ) : XmlElement
operator ( ) : bool

Implements the operator !=.

메소드 상세

Equals() 공개 메소드

Compares this ip address with another ip address.
public Equals ( IpAddress other ) : bool
other IpAddress The ip address to compare this ip address with.
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

FromNumber() 공개 정적인 메소드

Gets the string representation of the specified address.
public static FromNumber ( uint address ) : string
address uint The address to convert.
리턴 string

FromString() 공개 정적인 메소드

Converts the specified address from string to a 32bit integer.
public static FromString ( string address ) : uint
address string The IP address string to convert.
리턴 uint

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

IpAddress() 공개 메소드

Initializes a new instance of the IpAddress class.
public IpAddress ( XmlElement configElement ) : System
configElement System.Xml.XmlElement The configuration element that defines this IP address.
리턴 System

IpAddress() 공개 메소드

Initializes a new instance of the IpAddress class, using the specified address string to initialize it's Address property.
public IpAddress ( string address ) : System
address string The IP address as a string (e.g. '204.27.198.20').
리턴 System

IpAddress() 공개 메소드

Initializes a new instance of the IpAddress class, using the specified address and to strings to initialize it's Address and To properties.
public IpAddress ( string address, string to ) : System
address string The begin IP address of a range, represented with a string (e.g. '204.27.198.20').
to string The end IP address of a range, represented with a string (e.g. '204.27.198.60').
리턴 System

Matches() 공개 메소드

Matches this IpAddress with the specified address.
public Matches ( string address ) : bool
address string The IP address to test.
리턴 bool

Parse() 공개 메소드

public Parse ( XmlElement element ) : void
element System.Xml.XmlElement
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToXml() 공개 메소드

public ToXml ( XmlDocument document ) : XmlElement
document System.Xml.XmlDocument
리턴 System.Xml.XmlElement

operator() 공개 정적인 메소드

Implements the operator !=.
public static operator ( ) : bool
리턴 bool