IWMSAdminUnicastSink.DataProtocols (C#)

banner art

Previous Next

IWMSAdminUnicastSink.DataProtocols (C#)

The DataProtocols property retrieves a semicolon-delimited list of the data protocols supported by the plug-in.

Syntax

  string = AdminUnicastSink.DataProtocols;

Property Value

A string value containing the protocols.

Remarks

This property is read-only.

Example Code

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

// Declare variables.
WMSServer Server;
IWMSPlugin Plugin;
IWMSAdminUnicastSink AdminUnicastSink;

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

    // Retrieve the plug-in to be configured.
    Plugin = Server.UnicastDataSinks[
                        "WMS Unicast Data Writer"];

    // Retrieve the custom interface of the plug-in.
    AdminUnicastSink =
        (IWMSAdminUnicastSink)Plugin.CustomInterface;

    // Retrieve the data protocol used by the unicast broadcast.
    string strProtocols = AdminUnicastSink.DataProtocols;
}
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