IWMSPublishingPoint.Type (Visual Basic .NET)
Previous | Next |
IWMSPublishingPoint.Type (Visual Basic .NET)
The Type property retrieves an enumeration value that indicates the publishing point type.
Syntax
WMS_PUBLISHING_POINT_TYPE = IWMSPublishingPoint.Type
Property Value
A member of a WMS_PUBLISHING_POINT_TYPE enumeration type indicating the publishing point type. This must be one of the following values.
Value | Description |
WMS_PUBLISHING_POINT_TYPE_ON_DEMAND | The publishing point is an on-demand publishing point. |
WMS_PUBLISHING_POINT_TYPE_BROADCAST | The publishing point is a broadcast publishing point. |
WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_ON_DEMAND | The publishing point is an on-demand publishing point that can be used for caching content. |
WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_BROADCAST | The publishing point is a broadcast publishing point that can be used as a proxy. |
If this property fails, it returns an error number.
Number | Description |
0xC00D145AL | The publishing point was already removed. |
Remarks
This property is read-only. You must specify the publishing point type when you use the IWMSPublishingPoints.Add method to create a publishing point.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetPubPointType() ' Declare variables. Dim Server As WMSServer Dim PubPoints As IWMSPublishingPoints Dim PubPoint As IWMSPublishingPoint Dim pptType As WMS_PUBLISHING_POINT_TYPE 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 type of publishing point. pptType = PubPoint.Type If pptType = WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_BROADCAST Then ' TODO: Handle broadcast publishing point. ElseIf pptType = WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_BROADCAST Then ' TODO: Handle cache proxy broadcast publishing point. ElseIf pptType = WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_ON_DEMAND Then ' TODO: Handle cache proxy on-demand publishing point. ElseIf pptType = WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_ON_DEMAND Then ' TODO: Handle on-demand publishing point. End If 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 |