C# Class Brunet.Applications.IPAddresses

Inheritance: IEnumerable
Afficher le fichier Open project: johnynek/brunet Class Usage Examples

Méthodes publiques

Свойство Type Description
AllInterfaces IList

Protected Properties

Свойство Type Description
_ints System.Collections.ArrayList

Méthodes publiques

Méthode Description
GetAddresses ( ) : IList

This is the system depedent part of the code. It should call look up address information and place it into an IList.

GetEnumerator ( ) : IEnumerator

To be of type IEnumerable, here is the Enumerator. This enumerates through the IList given by GetIPAddresses

GetIPAddresses ( ) : IPAddresses

Automatically chooses which version of IPAddresses to instantiate. This version looks up all the interfaces for the host

GetIPAddresses ( string interfaces ) : IPAddresses

Automatically chooses which version of IPAddresses to instantiate. This version of the constructor allows you to choose which interfaces to look up

IPAddresses ( ) : System

Used to look up all interfaces

IPAddresses ( string interfaces ) : System

Used to look up specific list of interfaces. This should not be called directly use GetIPAddresses(string[] interfaces)

Print ( ) : void

Prints the IPAddresses IList to the console.

Méthodes protégées

Méthode Description
AddIfMatch ( Regex re, string line, Hashtable ht, string key ) : bool

Called by GetAddresses to add the value to the correct place in the hashtable.

Method Details

AddIfMatch() protected méthode

Called by GetAddresses to add the value to the correct place in the hashtable.
protected AddIfMatch ( Regex re, string line, Hashtable ht, string key ) : bool
re System.Text.RegularExpressions.Regex The regular expression to match.
line string The line to check.
ht System.Collections.Hashtable The hashtable to store the data if their is a match.
key string Position in the key in the hashtable to store the result
Résultat bool

GetAddresses() public abstract méthode

This is the system depedent part of the code. It should call look up address information and place it into an IList.
public abstract GetAddresses ( ) : IList
Résultat IList

GetEnumerator() public méthode

To be of type IEnumerable, here is the Enumerator. This enumerates through the IList given by GetIPAddresses
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetIPAddresses() public static méthode

Automatically chooses which version of IPAddresses to instantiate. This version looks up all the interfaces for the host
public static GetIPAddresses ( ) : IPAddresses
Résultat IPAddresses

GetIPAddresses() public static méthode

Automatically chooses which version of IPAddresses to instantiate. This version of the constructor allows you to choose which interfaces to look up
public static GetIPAddresses ( string interfaces ) : IPAddresses
interfaces string An array of interfaces to look up,
Résultat IPAddresses

IPAddresses() public méthode

Used to look up all interfaces
public IPAddresses ( ) : System
Résultat System

IPAddresses() public méthode

Used to look up specific list of interfaces. This should not be called directly use GetIPAddresses(string[] interfaces)
public IPAddresses ( string interfaces ) : System
interfaces string A list of interfaces to look up
Résultat System

Print() public méthode

Prints the IPAddresses IList to the console.
public Print ( ) : void
Résultat void

Property Details

AllInterfaces public_oe property

Contains interfaces information
public IList AllInterfaces
Résultat IList

_ints protected_oe property

A list of the interfaces to look up when GetAddresses is called
protected ArrayList,System.Collections _ints
Résultat System.Collections.ArrayList