語言

CustomAttributeTypedArgument 建構函式

定義

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

多載

名稱 Description
CustomAttributeTypedArgument(Object)

初始化一個以指定值的新 CustomAttributeTypedArgument 類別實例。

CustomAttributeTypedArgument(Type, Object)

初始化一個以指定型別與值的新類別實例 CustomAttributeTypedArgument 。

CustomAttributeTypedArgument(Object)

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

自訂屬性參數的值。

例外狀況

value 是 null。

備註

value參數不可能是null這個建構子,因為參數型別是從 的value型別推斷出來的。 要指定null一個值,請使用建構子。CustomAttributeTypedArgument(Type, Object)

此建構器供類別繼承者 CustomAttributeTypedArgument 使用。 它並非用於應用程式程式碼。

適用於

CustomAttributeTypedArgument(Type, Object)

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

自訂屬性參數的值。

例外狀況

argumentType 是 null。

備註

此建構器供類別繼承者 CustomAttributeTypedArgument 使用。 它並非用於應用程式程式碼。

適用於