Share via


IWMSOutgoingDistributionConnection.ID (C#)

banner art

Previous Next

IWMSOutgoingDistributionConnection.ID (C#)

The ID property retrieves a unique value identifying a client that is receiving the distributed content.

Syntax

  int = IWMSOutgoingDistributionConnection.ID;

Property Value

int containing the ID.

Remarks

This property is read-only.

Example Code

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

// Declare variables.
WMSServer                              Server;
IWMSOutgoingDistributionConnections    Connections;
IWMSOutgoingDistributionConnection     Connection;

int                                   iValue;

try {
    // Create a new WMSServer object.
    Server = new WMSServerClass();

    // Retrieve the IWMSOutgoingDistributionConnections object.
    Connections = Server.OutgoingDistributionConnections;

    // Retrieve information about each distribution connection.
    for (int i = 0; i < Connections.Count; i++)
    {
        Connection = Connections[i];

        // Retrieve the ID of the client.
        iValue = Connection.ID;
    }
}
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