RuntimeFeature 類別

定義

定義 API,以判斷通用語言執行平台是否支援特定功能。Defines APIs to determine whether specific features are supported by the common language runtime.

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

欄位

CovariantReturnsOfClasses

代表執行階段功能,其中覆寫方法可傳回比其所覆寫方法更多的衍生型別。Represents a runtime feature where overriding methods can return more derived types than the method they override.

DefaultImplementationsOfInterfaces

代表執行階段功能,其中介面可定義實作的預設方法。Represents a runtime feature where interfaces can define default method implementations.

PortablePdb

表示可攜式 PDB 執行階段功能。Represents the portable PDB runtime feature.

UnmanagedSignatureCallingConvention

表示執行階段功能,其中可使用非受控呼叫慣例來宣告 C# 函式指標。Represents a runtime feature where C# function pointers can be declared with an unmanaged calling convention.

屬性

IsDynamicCodeCompiled

取得值,表示執行階段是否會編譯動態程式碼。Gets a value that indicates whether the runtime compiles dynamic code.

IsDynamicCodeSupported

取得值,其表示執行階段是否會支援動態程式碼。Gets a value that indicates whether the runtime supports dynamic code.

方法

IsSupported(String)

判斷 Common Language Runtime 是否支援指定的功能。Determines whether a specified feature is supported by the common language runtime.

適用於