IWMSServer.StartTime (C#)

banner art

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