CustomAttributeTypedArgument CustomAttributeTypedArgument CustomAttributeTypedArgument CustomAttributeTypedArgument Constructors

定義

多載

CustomAttributeTypedArgument(Object) CustomAttributeTypedArgument(Object) CustomAttributeTypedArgument(Object) CustomAttributeTypedArgument(Object)

使用指定的值,初始化 CustomAttributeTypedArgument 類別的新執行個體。Initializes a new instance of the CustomAttributeTypedArgument class with the specified value.

CustomAttributeTypedArgument(Type, Object) CustomAttributeTypedArgument(Type, Object) CustomAttributeTypedArgument(Type, Object) CustomAttributeTypedArgument(Type, Object)

使用指定的型別和值,初始化 CustomAttributeTypedArgument 類別的新執行個體。Initializes a new instance of the CustomAttributeTypedArgument class with the specified type and value.

CustomAttributeTypedArgument(Object) CustomAttributeTypedArgument(Object) CustomAttributeTypedArgument(Object) CustomAttributeTypedArgument(Object)

使用指定的值,初始化 CustomAttributeTypedArgument 類別的新執行個體。Initializes a new instance of the CustomAttributeTypedArgument class with the specified value.

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 Object Object Object

自訂屬性引數的值。The value of the custom attribute argument.

例外狀況

備註

這個value函式的null參數不能是,因為引數型別是從的型value別推斷而來。The value parameter cannot be null for this constructor, because the argument type is inferred from the type of value. 若要指定null值,請使用CustomAttributeTypedArgument(Type, Object)此函數。To specify a null value, use the CustomAttributeTypedArgument(Type, Object) constructor.

此函式可供CustomAttributeTypedArgument類別的繼承者使用。This constructor is for use by inheritors of the CustomAttributeTypedArgument class. 它不適合用于應用程式的程式碼中。It is not intended for use in application code.

CustomAttributeTypedArgument(Type, Object) CustomAttributeTypedArgument(Type, Object) CustomAttributeTypedArgument(Type, Object) CustomAttributeTypedArgument(Type, Object)

使用指定的型別和值,初始化 CustomAttributeTypedArgument 類別的新執行個體。Initializes a new instance of the CustomAttributeTypedArgument class with the specified type and value.

public:
 CustomAttributeTypedArgument(Type ^ argumentType, System::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 Type Type Type

自訂屬性引數的型別。The type of the custom attribute argument.

value
Object Object Object Object

自訂屬性引數的值。The value of the custom attribute argument.

例外狀況

備註

此函式可供CustomAttributeTypedArgument類別的繼承者使用。This constructor is for use by inheritors of the CustomAttributeTypedArgument class. 它不適合用于應用程式的程式碼中。It is not intended for use in application code.

適用於