IWMSServer.AvailableIPAddresses (C#)

banner art

Previous Next

IWMSServer.AvailableIPAddresses (C#)

The AvailableIPAddresses property retrieves an IWMSAvailableIPAddresses collection of IP addresses that can be used by the server to publish content.

Syntax

  IWMSAvailableIPAddresses = IWMSServer.AvailableIPAddresses;

Property Value

An IWMSAvailableIPAddresses object containing a collection of IP addresses.

Remarks

This property is read-only.

Example Code

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;









    // Retrieve a list of IP addresses that can be
    // used by the server to publish content.
    IPAddresses = Server.AvailableIPAddresses;
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

Requirements

Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Previous Next