CustomAttributeTypedArgument 建構函式

定義

初始化 CustomAttributeTypedArgument 類別的新執行個體。

多載

CustomAttributeTypedArgument(Object)

使用指定的值,初始化 CustomAttributeTypedArgument 類別的新執行個體。

CustomAttributeTypedArgument(Type, Object)

初始化具有指定的類型和值之 CustomAttributeTypedArgument 類別的新執行個體。

CustomAttributeTypedArgument(Object)

來源:
CustomAttributeTypedArgument.cs
來源:
CustomAttributeTypedArgument.cs
來源:
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)

來源:
CustomAttributeTypedArgument.cs
來源:
CustomAttributeTypedArgument.cs
來源:
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 繼承者使用。 它不適用於應用程式程序代碼。

適用於