CodeAttributeArgumentCollection 构造函数

定义

初始化 CodeAttributeArgumentCollection 类的新实例。Initializes a new instance of the CodeAttributeArgumentCollection class.

重载

CodeAttributeArgumentCollection()

初始化 CodeAttributeArgumentCollection 类的新实例。Initializes a new instance of the CodeAttributeArgumentCollection class.

CodeAttributeArgumentCollection(CodeAttributeArgument[])

初始化 CodeAttributeArgumentCollection 类的新实例,该实例包含指定的 CodeAttributeArgument 对象数组。Initializes a new instance of the CodeAttributeArgumentCollection class containing the specified array of CodeAttributeArgument objects.

CodeAttributeArgumentCollection(CodeAttributeArgumentCollection)

初始化 CodeAttributeArgumentCollection 类的新实例,该实例包含指定源集合的元素。Initializes a new instance of the CodeAttributeArgumentCollection class containing the elements of the specified source collection.

CodeAttributeArgumentCollection()

初始化 CodeAttributeArgumentCollection 类的新实例。Initializes a new instance of the CodeAttributeArgumentCollection class.

public:
 CodeAttributeArgumentCollection();
public CodeAttributeArgumentCollection ();
Public Sub New ()

CodeAttributeArgumentCollection(CodeAttributeArgument[])

初始化 CodeAttributeArgumentCollection 类的新实例,该实例包含指定的 CodeAttributeArgument 对象数组。Initializes a new instance of the CodeAttributeArgumentCollection class containing the specified array of CodeAttributeArgument objects.

public:
 CodeAttributeArgumentCollection(cli::array <System::CodeDom::CodeAttributeArgument ^> ^ value);
public CodeAttributeArgumentCollection (System.CodeDom.CodeAttributeArgument[] value);
new System.CodeDom.CodeAttributeArgumentCollection : System.CodeDom.CodeAttributeArgument[] -> System.CodeDom.CodeAttributeArgumentCollection
Public Sub New (value As CodeAttributeArgument())

参数

value
CodeAttributeArgument[]

用于初始化该集合的 CodeAttributeArgument 对象数组。An array of CodeAttributeArgument objects with which to initialize the collection.

例外

数组中的一个或多个对象为 nullOne or more objects in the array are null.

CodeAttributeArgumentCollection(CodeAttributeArgumentCollection)

初始化 CodeAttributeArgumentCollection 类的新实例,该实例包含指定源集合的元素。Initializes a new instance of the CodeAttributeArgumentCollection class containing the elements of the specified source collection.

public:
 CodeAttributeArgumentCollection(System::CodeDom::CodeAttributeArgumentCollection ^ value);
public CodeAttributeArgumentCollection (System.CodeDom.CodeAttributeArgumentCollection value);
new System.CodeDom.CodeAttributeArgumentCollection : System.CodeDom.CodeAttributeArgumentCollection -> System.CodeDom.CodeAttributeArgumentCollection
Public Sub New (value As CodeAttributeArgumentCollection)

参数

value
CodeAttributeArgumentCollection

CodeAttributeArgumentCollection,用来初始化集合。A CodeAttributeArgumentCollection with which to initialize the collection.

例外

valuenullvalue is null.

适用于