Compilation.SupportsRuntimeCapability(RuntimeCapability) 方法

定义

确定此 Compilation 目标运行时是否支持特定功能。

public bool SupportsRuntimeCapability (Microsoft.CodeAnalysis.RuntimeCapability capability);
member this.SupportsRuntimeCapability : Microsoft.CodeAnalysis.RuntimeCapability -> bool
Public Function SupportsRuntimeCapability (capability As RuntimeCapability) As Boolean

参数

capability
RuntimeCapability

返回

注解

false如果传入了未知功能,则返回 。

适用于