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 |
IWMSOutgoingDistributionConnection.RequestedURL (C#)
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 throws an exception.
| Number | Description |
| 0x8002000B | Indicates the value does not exist. |
Remarks
The URL 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
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSOutgoingDistributionConnections Connections;
IWMSOutgoingDistributionConnection Connection;
string strURL;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSOutgoingDistributionConnections object.
Connections = Server.OutgoingDistributionConnections;
// Retrieve information about each distribution connection.
for (int i = 0; i < Connections.Count; i++)
{
Connection = Connections[i];
// Retrieve the requested URL of the client.
strURL = Connection.RequestedURL;
}
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}
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 |