IWMSOutgoingDistributionConnection.RequestedPlaylist (Visual Basic .NET)

The RequestedPlaylist property retrieves the client's requested playlist object.

IWMSPlaylist = OutgoingDistributionConnection.RequestedPlaylist

Property Value

An IWMSPlaylist object.


This property is read-only. This object exists for an on-demand publishing point only if a client explicitly requests a playlist or a presentation that uses a server-side playlist. This object never exists for clients that are accessing content from a broadcast publishing point.


Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub GetPlaylist()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Connections As IWMSOutgoingDistributionConnections
    Dim Connection As IWMSOutgoingDistributionConnection
    Dim Playlist As IWMSPlaylist

    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the IWMSOutgoingDistributionConnections object.
    Connections = Server.OutgoingDistributionConnections

    ' Retrieve information about each distribution connection.
    For Each Connection In Connections
        ' Retrieve the playlist requested by the client
        ' if one exists.
        Playlist = Connection.RequestedPlaylist

Catch excCom As COMException
    ' TODO: Handle COM exceptions.
Catch exc As Exception
    ' TODO: Handle errors.
    ' TODO: Clean-up code goes here.
End Try

End Sub


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


IWMSOutgoingDistributionConnection Object (Visual Basic .NET)