RuntimeInformation.RuntimeIdentifier 属性
定义
获取正在其上运行应用的平台。Gets the platform on which an app is running.
public:
static property System::String ^ RuntimeIdentifier { System::String ^ get(); };
public static string RuntimeIdentifier { get; }
member this.RuntimeIdentifier : string
Public Shared ReadOnly Property RuntimeIdentifier As String
属性值
一个不透明的字符串,用于标识运行应用程序的平台。An opaque string that identifies the platform on which the app is running.
注解
此属性返回标识操作系统的字符串,通常包括当前正在执行的进程的版本和处理器体系结构。This property returns a string that identifies the operating system, typically including the version and processor architecture of the currently executing process.
由于此字符串是不透明的,因此不建议将字符串分析为其构成部分。Since this string is opaque, it's not recommended to parse the string into its constituent parts.
有关详细信息,请参阅 .Net CORE RID 目录。For more information, see .NET Core RID catalog.