FeatureAttribute 类

定义

表示与Windows 运行时类型关联的Windows 运行时功能的状态。

public ref class FeatureAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.InterfaceImpl | System.AttributeTargets.Method | System.AttributeTargets.RuntimeClass | System.AttributeTargets.Struct)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 196608)]
class FeatureAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.InterfaceImpl | System.AttributeTargets.Method | System.AttributeTargets.RuntimeClass | System.AttributeTargets.Struct)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 196608)]
public sealed class FeatureAttribute : Attribute
function FeatureAttribute(featureStage, validInAllBranches)
Public NotInheritable Class FeatureAttribute
Inherits Attribute
继承
FeatureAttribute
属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.FoundationContract (在 v3.0 中引入)

注解

此属性用于 Microsoft 内部预发行版本跟踪,仅出于完整性而在此处提供。

构造函数

FeatureAttribute(FeatureStage, Boolean)

创建并初始化 特性的新实例。

适用于