CustomAttributeTypedArgument 构造函数

定义

初始化 CustomAttributeTypedArgument 类的新实例。

重载

名称 说明
CustomAttributeTypedArgument(Object)

使用指定的值初始化类的新实例 CustomAttributeTypedArgument

CustomAttributeTypedArgument(Type, Object)

使用指定的类型和值初始化类的新实例 CustomAttributeTypedArgument

CustomAttributeTypedArgument(Object)

Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs

使用指定的值初始化类的新实例 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

自定义特性参数的值。

例外

valuenull

注解

参数 value 不能 null 用于此构造函数,因为参数类型是从类型推断的 value。 若要指定值 null ,请使用 CustomAttributeTypedArgument(Type, Object) 构造函数。

此构造函数供类的 CustomAttributeTypedArgument 继承者使用。 它不适用于应用程序代码。

适用于

CustomAttributeTypedArgument(Type, Object)

Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs
Source:
CustomAttributeTypedArgument.cs

使用指定的类型和值初始化类的新实例 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

自定义特性参数的值。

例外

argumentTypenull

注解

此构造函数供类的 CustomAttributeTypedArgument 继承者使用。 它不适用于应用程序代码。

适用于