RuntimeInformation 類別

定義

提供 .NET 執行階段安裝的相關資訊。

public ref class RuntimeInformation abstract sealed
public static class RuntimeInformation
type RuntimeInformation = class
Public Class RuntimeInformation
繼承
RuntimeInformation

屬性

FrameworkDescription

取得執行應用程式的 .NET 安裝名稱。

OSArchitecture

取得目前應用程式執行所在的平台架構。

OSDescription

取得字串,描述應用程式執行所在的作業系統。

ProcessArchitecture

取得目前執行中的應用程式處理序架構。

RuntimeIdentifier

取得執行時間建置 (或應用程式執行) 的平臺。

方法

IsOSPlatform(OSPlatform)

指出目前的應用程式是否正在指定的平台上執行。

適用於