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.CustomAttributeTypedArgumentPublic 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.CustomAttributeTypedArgumentPublic Sub New (argumentType As Type, value As Object)参数
- argumentType
- Type
自定义特性参数的类型。
- value
- Object
自定义特性参数的值。
例外
              argumentType 为 null。
注解
此构造函数供 类的 CustomAttributeTypedArgument 继承者使用。 它不适合在应用程序代码中使用。