ComponentGuaranteesAttribute(ComponentGuaranteesOptions) 构造函数

定义

使用一个指示某个库、类型或成员保证的跨多个版本的兼容性级别的值初始化 ComponentGuaranteesAttribute 类的新实例。Initializes a new instance of the ComponentGuaranteesAttribute class with a value that indicates a library, type, or member's guaranteed level of compatibility across multiple versions.

public:
 ComponentGuaranteesAttribute(System::Runtime::Versioning::ComponentGuaranteesOptions guarantees);
public ComponentGuaranteesAttribute (System.Runtime.Versioning.ComponentGuaranteesOptions guarantees);
new System.Runtime.Versioning.ComponentGuaranteesAttribute : System.Runtime.Versioning.ComponentGuaranteesOptions -> System.Runtime.Versioning.ComponentGuaranteesAttribute
Public Sub New (guarantees As ComponentGuaranteesOptions)

参数

guarantees
ComponentGuaranteesOptions

用于指定保证的跨多个版本的兼容性级别的枚举值之一。One of the enumeration values that specifies the level of compatibility that is guaranteed across multiple versions.

注解

当对 ComponentGuaranteesAttribute 类进行实例化时,将参数的值 guarantees 分配给 Guarantees 属性。When the ComponentGuaranteesAttribute class is instantiated, the value of the guarantees parameter is assigned to the Guarantees property.

适用于