C# Class Sage.Configuration.IpAddress

Provides a structure for storing and comparing IP addresses and ranges.
Inheritance: IXmlConvertible
Afficher le fichier Open project: igorfrance/sage Class Usage Examples

Méthodes publiques

Méthode Description
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 !=.

Method Details

Equals() public méthode

Compares this ip address with another ip address.
public Equals ( IpAddress other ) : bool
other IpAddress The ip address to compare this ip address with.
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

FromNumber() public static méthode

Gets the string representation of the specified address.
public static FromNumber ( uint address ) : string
address uint The address to convert.
Résultat string

FromString() public static méthode

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

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IpAddress() public méthode

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.
Résultat System

IpAddress() public méthode

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').
Résultat System

IpAddress() public méthode

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').
Résultat System

Matches() public méthode

Matches this IpAddress with the specified address.
public Matches ( string address ) : bool
address string The IP address to test.
Résultat bool

Parse() public méthode

public Parse ( XmlElement element ) : void
element System.Xml.XmlElement
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

ToXml() public méthode

public ToXml ( XmlDocument document ) : XmlElement
document System.Xml.XmlDocument
Résultat System.Xml.XmlElement

operator() public static méthode

Implements the operator !=.
public static operator ( ) : bool
Résultat bool