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.
.gif)
| Previous | Next |
IWMSBroadcastPublishingPoint2.EnableStartVRootOnServiceStart (Visual Basic .NET)
The EnableStartVRootOnServiceStart property specifies and retrieves a Boolean value that indicates whether the publishing point automatically starts when Windows Media Services starts.
- Note Except for Windows Server 2003, Web Edition, this property is available only on the x64-based versions of Windows Server 2003 and on the 32-bit versions of Windows Server 2003 with Service Pack 1. This property is also available on Windows Server 2008.
Syntax
BroadcastPublishingPoint2 .EnableStartVRootOnServiceStart = Boolean ; Boolean = BroadcastPublishingPoint2 .EnableStartVRootOnServiceStart;
Property Value
A Boolean that indicates whether the publishing point automatically starts when Windows Media Services starts.
Remarks
The default value is False.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub EnableVRootRestart()
' Declare variables.
Dim Server As IWMSServer
Dim PubPoints As IWMSPublishingPoints
Dim PubPoint As IWMSPublishingPoint
Dim BCPubPoint2 As IWMSBroadcastPublishingPoint2
Dim bVal As Boolean
Dim i As Integer
Try
' Create a new WMSServer object.
Server = New WMSServerClass
' Retrieve the IWMSPublishingPoints object.
PubPoints = Server.PublishingPoints
' Retrieve each publishing point and retrieve the
' IWMSBroadcastPublishingPoint2 object.
For i = 0 To PubPoints.Count - 1
PubPoint = PubPoints.Item(i)
If PubPoint.Type = WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_BROADCAST Then
BCPubPoint2 = PubPoint
Exit For
End If
Next i
' Retrieve a Boolean value indicating whether the broadcast
' publishing point will start when Windows Media Services
' starts.
bVal = BCPubPoint2.EnableStartVRootOnServiceStart
' Set a Boolean value indicating that the broadcast
' publishing point will start when Windows Media Services
' starts.
BCPubPoint2.EnableStartVRootOnServiceStart = True
Catch comExc As COMException
' TODO: Handle COM exceptions.
Catch exc As Exception
' TODO: Handle exceptions.
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, Standard Edition with Service Pack 1; Windows Server 2003, Enterprise Edition with Service Pack 1; Windows Server 2003, Datacenter Edition with Service Pack 1; Windows Server 2008.
See Also
| Previous | Next |