IWMSPublishingPoint.ID (C#)

The ID property retrieves a unique CLSID for the publishing point.

string = IWMSPublishingPoint.ID;

Property Value

A string representing the unique identifier for this publishing point.

If this property fails, it throws an exception.

Number

Description

0x8007000E

There is insufficient memory to complete the function.

0xC00D145AL

The publishing point was already removed.

Remarks

This property is read-only. The CLSID is a globally unique identifier (GUID) in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

Example

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

// Declare variables.
WMSServer              Server;
IWMSPublishingPoints   PubPoints;
IWMSPublishingPoint    PubPoint;

string                 strText;

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

    // Retrieve the IWMSPublishingPoints object.
    PubPoints = Server.PublishingPoints;

    // Retrieve information about each publishing point.
    for (int i = 0; i < PubPoints.Count; i++)
    {
        PubPoint = PubPoints[i];

        // Retrieve the unique CLSID of the publishing point.
        strText = PubPoint.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

Reference

IWMSPublishingPoint Object (C#)