Udostępnij za pośrednictwem


Metoda ListIPAddresses (WMI MSReportServer_ConfigurationSetting)

Wyświetla listę adresów IP dla komputera serwer raportów.

Składnia

Public Sub ListIPAddresses (ByRef IPAddress() as String, _
    ByRef IPVersion()as String, ByRef IsDhcpEnabled () as Boolean, _ 
    ByRef Length as Int32, ByRef HRESULT as Int32)
public void ListIPAddresses (out string[] IPAddress, 
    out string[] IPVersion, out bool[] isDhcpEnabled, out int length, 
    out int HRESULT);

Parametry

  • IPAddress[]
    [Brak] Lista adresów IP dla komputera.

  • IPVersion[]
    [Brak] Wersja dla adresów IP.

  • IsDhcpEnabled[]
    [Brak] Wskazuje, czy adresy IP są włączone DHCP.

  • Length
    [Brak] Długość tablicy zwracany przez metoda.

  • HRESULT
    [Brak] Wartość wskazująca, czy wywołanie pomyślnych lub niepomyślnych.

Wartość zwracana

Zwraca HRESULT powodzeniu lub niepowodzeniu wywołania metoda.Wartość 0 wskazuje, że wywołanie metoda zostało wykonane prawidłowo; Kod błędu wskazuje wywołanie nie powiodło się.

Uwagi

IPVersion ciągi są V4 (wersja 6).

If IsDhcpEnabled is True, the IPAddress is dynamic.Nie powinny być używane do wiązania protokołu SSL.

Wymagania

Obszar nazw: katalog_główny\Microsoft\SqlServer\ReportServer\RS<EncodedInstanceName>\v10\Admin

Platforma: Windows Server 2003 Datacenter Edition, Windows Server 2003 Enterprise Edition, Windows Server 2003 Standard Edition, Windows Vista, Windows XP Professional z dodatkiem Service Pack 2 (SP2) lub Service Pack 1 (SP1) albo Windows 2000 (wszystkie wersje)