CodeCommentStatementCollection.Add(CodeCommentStatement) Método

Definición

Agrega el objeto especificado CodeCommentStatement a la colección.

public:
 int Add(System::CodeDom::CodeCommentStatement ^ value);
public int Add(System.CodeDom.CodeCommentStatement value);
member this.Add : System.CodeDom.CodeCommentStatement -> int
Public Function Add (value As CodeCommentStatement) As Integer

Parámetros

value
CodeCommentStatement

Objeto CodeCommentStatement que se va a agregar.

Devoluciones

Índice en el que se insertó el nuevo elemento.

Ejemplos

En el ejemplo siguiente se muestra cómo agregar un CodeCommentStatement objeto a una CodeCommentStatementCollection instancia de .

// Adds a CodeCommentStatement to the collection.
collection.Add( new CodeCommentStatement("Test comment") );
' Adds a CodeCommentStatement to the collection.
collection.Add(New CodeCommentStatement("Test comment"))

Se aplica a

Consulte también