IWMSOutgoingDistributionConnection.RequestedURL (Visual Basic .NET)
Previous | Next |
IWMSOutgoingDistributionConnection.RequestedURL (Visual Basic .NET)
The RequestedURL property retrieves the URL that the client used to request a distribution connection.
Syntax
String = IWMSOutgoingDistributionConnection.RequestedURL
Property Value
A String containing the URL.
If this property fails, it returns an error number.
Number | Description |
0x8002000B | The value does not exist. |
Remarks
The URL that is returned by the RequestedURL property can be different than that requested by the client. For example, if the client requests mms://ServerName/movie.wmv, the RequestedURL property can return either mmsu://ServerName/movie.wmv or mmst://ServerName/movie.wmv, depending on the type of connection used by the session.
This property is read-only.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetRequestedURL() ' Declare variables. Dim Server As WMSServer Dim Connections As IWMSOutgoingDistributionConnections Dim Connection As IWMSOutgoingDistributionConnection Dim strURL As String Try ' 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 requested URL of the client. strURL = Connection.RequestedURL 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 |