Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.