IWMSServer.StartTime (Visual Basic .NET)
Previous | Next |
IWMSServer.StartTime (Visual Basic .NET)
The StartTime property retrieves the date and time at which the Windows Media server started.
Syntax
Date = IWMSServer.StartTime
Property Value
A Date 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
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetStartTime() ' Declare variables. Dim Server As WMSServer Dim dtTime As Date Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve a value indicating the date and time ' when the server began running. dtTime = Server.StartTime Catch excCom As COMException ' TODO: Handle COM exceptions. Catch exc As Exception ' TODO: Handle errors. Finally ' TODO: Clean-up code goes here. End Try End Sub
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 |