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 |
IWMSAdminArchiveSink.ActivePath (Visual Basic .NET)
The ActivePath property retrieves the path to the content that is being archived.
Syntax
String = IWMSAdminArchiveSink.ActivePath
Property Value
A String containing the path.
If this property fails, it throws an exception.
| Number | Description |
| 0x8000FFFF | The WMS Archive Data Writer plug-in cannot be found. |
Remarks
This property is read-only.
If a publishing point is not actively archiving content, this method will return an empty string.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub GetContentPath()
' Declare variables.
Dim Server As WMSServer
Dim BCPubPoint As IWMSBroadcastPublishingPoint
Dim Plugin As IWMSPlugin
Dim AdminArchiveSink As IWMSAdminArchiveSink
Dim Path As String
Try
' Create the WMSServer object.
Server = New WMSServer()
' Add a new broadcast publishing point.
BCPubPoint = Server.PublishingPoints.Add("NewPubPoint", _
WMS_PUBLISHING_POINT_CATEGORY.WMS_PUBLISHING_POINT_BROADCAST, _
"c:\wmpub\wmroot\playlist.wsx")
' Retrieve the plug-in to be configured.
Plugin = BCPubPoint.BroadcastDataSinks.Item( _
"WMS Archive Data Writer")
' Retrieve the custom interface of the plug-in.
AdminArchiveSink = Plugin.CustomInterface
' Retrieve the path to content currently being
' archived.
Path = AdminArchiveSink.ActivePath
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 |