CodeCommentStatementCollection 构造函数

定义

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

重载

CodeCommentStatementCollection()

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

CodeCommentStatementCollection(CodeCommentStatement[])

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

CodeCommentStatementCollection(CodeCommentStatementCollection)

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

CodeCommentStatementCollection()

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

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

CodeCommentStatementCollection(CodeCommentStatement[])

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

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

参数

value
CodeCommentStatement[]

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

例外

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

CodeCommentStatementCollection(CodeCommentStatementCollection)

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

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

参数

value
CodeCommentStatementCollection

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

例外

valuenullvalue is null.

适用于