CustomAttributeTypedArgument 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 CustomAttributeTypedArgument 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| CustomAttributeTypedArgument(Object) |
使用指定的值初始化类的新实例 CustomAttributeTypedArgument 。 |
| CustomAttributeTypedArgument(Type, Object) |
使用指定的类型和值初始化类的新实例 CustomAttributeTypedArgument 。 |
CustomAttributeTypedArgument(Object)
使用指定的值初始化类的新实例 CustomAttributeTypedArgument 。
public:
CustomAttributeTypedArgument(System::Object ^ value);
public CustomAttributeTypedArgument(object value);
new System.Reflection.CustomAttributeTypedArgument : obj -> System.Reflection.CustomAttributeTypedArgument
Public Sub New (value As Object)
参数
- value
- Object
自定义特性参数的值。
例外
value 是 null。
注解
参数 value 不能 null 用于此构造函数,因为参数类型是从类型推断的 value。 若要指定值 null ,请使用 CustomAttributeTypedArgument(Type, Object) 构造函数。
此构造函数供类的 CustomAttributeTypedArgument 继承者使用。 它不适用于应用程序代码。
适用于
CustomAttributeTypedArgument(Type, Object)
使用指定的类型和值初始化类的新实例 CustomAttributeTypedArgument 。
public:
CustomAttributeTypedArgument(Type ^ argumentType, System::Object ^ value);
public CustomAttributeTypedArgument(Type argumentType, object value);
public CustomAttributeTypedArgument(Type argumentType, object? value);
new System.Reflection.CustomAttributeTypedArgument : Type * obj -> System.Reflection.CustomAttributeTypedArgument
Public Sub New (argumentType As Type, value As Object)
参数
- argumentType
- Type
自定义特性参数的类型。
- value
- Object
自定义特性参数的值。
例外
argumentType 是 null。
注解
此构造函数供类的 CustomAttributeTypedArgument 继承者使用。 它不适用于应用程序代码。