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 |
IWMSServer.StartTime (C#)
The StartTime property retrieves the date and time at which the Windows Media server started.
Syntax
DateTime = IWMSServer.StartTime;
Property Value
A DateTime structure containing the date and time at which the server was started.
Remarks
This property is read-only. The StartTime method uses Greenwich Mean Time (GMT).
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Retrieve a value indicating the date and time
// when the server began running.
dtTime = Server.StartTime;
}
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 |