C# Класс Brunet.Applications.IPAddresses

Наследование: IEnumerable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AllInterfaces IList

Защищенные свойства (Protected)

Свойство Тип Описание
_ints System.Collections.ArrayList

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

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

Защищенные методы

Метод Описание
AddIfMatch ( Regex re, string line, Hashtable ht, string key ) : bool

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

Описание методов

AddIfMatch() защищенный Метод

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
Результат bool

GetAddresses() публичный абстрактный Метод

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
Результат IList

GetEnumerator() публичный Метод

To be of type IEnumerable, here is the Enumerator. This enumerates through the IList given by GetIPAddresses
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

GetIPAddresses() публичный статический Метод

Automatically chooses which version of IPAddresses to instantiate. This version looks up all the interfaces for the host
public static GetIPAddresses ( ) : IPAddresses
Результат IPAddresses

GetIPAddresses() публичный статический Метод

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,
Результат IPAddresses

IPAddresses() публичный Метод

Used to look up all interfaces
public IPAddresses ( ) : System
Результат System

IPAddresses() публичный Метод

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
Результат System

Print() публичный Метод

Prints the IPAddresses IList to the console.
public Print ( ) : void
Результат void

Описание свойств

AllInterfaces публичное свойство

Contains interfaces information
public IList AllInterfaces
Результат IList

_ints защищенное свойство

A list of the interfaces to look up when GetAddresses is called
protected ArrayList,System.Collections _ints
Результат System.Collections.ArrayList