共用方式為


SystemInformationEvent.OSRole 屬性

取得作業系統產品類型/角色,這擷取自 GetVersionEx。

命名空間:  Microsoft.VisualStudio.IntelliTrace
組件:  Microsoft.IntelliTrace.11.0.0 (在 Microsoft.IntelliTrace.11.0.0.dll 中)

語法

'宣告
Public ReadOnly Property OSRole As Integer
public int OSRole { get; }
public:
property int OSRole {
    int get ();
}
member OSRole : int with get
function get OSRole () : int

屬性值

型別:System.Int32

.NET Framework 安全性

請參閱

參考

SystemInformationEvent 類別

Microsoft.VisualStudio.IntelliTrace 命名空間