CodeCommentStatementCollection.Add(CodeCommentStatement) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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"))