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.ElapsedTime (C#)
The ElapsedTime property retrieves the amount of time that the archiving process has been running.
Syntax
int = IWMSAdminArchiveSink.ElapsedTime;
Property Value
int containing the elapsed time, in hundredths of milliseconds.
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.
When a playlist is being archived, the elapsed time is relative to the current playlist entry.
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSBroadcastPublishingPoint BCPubPoint;
IWMSPlugin Plugin;
IWMSAdminArchiveSink AdminArchiveSink;
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,
"c:\\wmpub\\wmroot\\playlist.wsx");
// Retrieve the plug-in to be configured.
Plugin = BCPubPoint.BroadcastDataSinks[
"WMS Archive Data Writer"];
// Retrieve the custom interface of the plug-in.
AdminArchiveSink =
(IWMSAdminArchiveSink)Plugin.CustomInterface;
// Retrieve the amount of time passed since
// the archiving process started.
int iElapsed = AdminArchiveSink.ElapsedTime;
}
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 |