IWMSServer.OSProductType (C#)

banner art

Previous Next

IWMSServer.OSProductType (C#)

The OSProductType property retrieves the operating system product type that Windows Media Services is running on.

Syntax

  WMS_OS_PRODUCT_TYPE 
  = 
  IWMSServer
  .OSProductType;

Property Value

A member of a WMS_OS_PRODUCT_TYPE enumeration type. This must be one of the following values.

Value Description
WMS_OS_PRODUCT_SERVER Windows Media Services is running on Windows Server 2003, Standard Edition or on Windows Server 2008 Standard.
WMS_OS_PRODUCT_ADVANCED Windows Media Services is running on Windows Server 2003, Enterprise Edition or on Windows Server 2008 Enterprise.

Remarks

This property is read-only.

Example Code

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;








    // Retrieve the OS type that the server is
    // currently running on.
    WMS_OS_PRODUCT_TYPE osType;
    osType = Server.OSProductType;
}
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