CodeCommentStatementCollection.Add(CodeCommentStatement) Metodo

Definizione

Aggiunge l'oggetto specificato CodeCommentStatement all'insieme.

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

Parametri

value
CodeCommentStatement

Oggetto CodeCommentStatement da aggiungere.

Valori restituiti

Indice in corrispondenza del quale è stato inserito il nuovo elemento.

Esempio

Nell'esempio seguente viene illustrato come aggiungere un CodeCommentStatement oggetto a un'istanza CodeCommentStatementCollection di .

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

Si applica a

Vedi anche