C# Класс Sage.Configuration.IpAddress

Provides a structure for storing and comparing IP addresses and ranges.
Наследование: IXmlConvertible
Показать файл Открыть проект Примеры использования класса

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

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