IWMSAdminMulticastSink.LoggingURL (C#)
.gif)
| Previous | Next |
IWMSAdminMulticastSink.LoggingURL (C#)
The LoggingURL property specifies and retrieves the URL used to log messages during a multicast.
Syntax
IWMSAdminMulticastSink .LoggingURL = string; string = IWMSAdminMulticastSink.LoggingURL;
Property Value
A string containing the logging URL. The prefix must be https://, for example https://servername/isapibackend.dll.
If this property fails, it throws an exception.
| Number | Description |
| 0x8007000E | The server could not copy the logging URL to a local variable. |
| 0xC00D1585 | The log URL prefix is not https://. |
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSBroadcastPublishingPoint BCPubPoint;
IWMSPlugin Plugin;
IWMSAdminMulticastSink AdminMulticastSink;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Add a new broadcast publishing point.
BCPubPoint = (IWMSBroadcastPublishingPoint)
Server.PublishingPoints.Add("NewPubPoint",
WMS_PUBLISHING_POINT_CATEGORY.
WMS_PUBLISHING_POINT_BROADCAST,
"Push:*");
// Retrieve the plug-in to be configured.
Plugin = BCPubPoint.BroadcastDataSinks[
"WMS Multicast Data Writer"];
// Retrieve the custom interface of the plug-in.
AdminMulticastSink =
(IWMSAdminMulticastSink)Plugin.CustomInterface;
// Set the URL to log messages to during a multicast.
AdminMulticastSink.LoggingURL = "https://server/logging.asp";
}
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, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008 Enterprise; Windows Server 2008 Datacenter.
See Also
| Previous | Next |