IWMSPublishingPoint.ID (Visual Basic .NET)
Previous | Next |
IWMSPublishingPoint.ID (Visual Basic .NET)
The ID property retrieves a unique CLSID for the publishing point.
Syntax
String = IWMSPublishingPoint.ID
Property Value
A String representing the unique identifier for this publishing point.
If this property fails, it returns an error number.
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 Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetCLSID() ' Declare variables. Dim Server As WMSServer Dim PubPoints As IWMSPublishingPoints Dim PubPoint As IWMSPublishingPoint Dim strText As String Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve the IWMSPublishingPoints object. PubPoints = Server.PublishingPoints ' Retrieve information about each publishing point. For Each PubPoint In PubPoints ' Retrieve the unique CLSID of the publishing point. strText = PubPoint.ID Next Catch excCom As COMException ' TODO: Handle COM exceptions. Catch exc As Exception ' TODO: Handle errors. Finally ' TODO: Clean-up code goes here. End Try End Sub
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 |