CodeCommentStatementCollection.Add(CodeCommentStatement) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Hozzáadja a megadott CodeCommentStatement objektumot a gyűjteményhez.
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
Paraméterek
- value
- CodeCommentStatement
A CodeCommentStatement hozzáadni kívánt objektum.
Válaszok
Az az index, amelyre az új elemet beszúrták.
Példák
Az alábbi példa bemutatja, hogyan adhat hozzá objektumot CodeCommentStatement egy CodeCommentStatementCollection példányhoz.
// Adds a CodeCommentStatement to the collection.
collection.Add( new CodeCommentStatement("Test comment") );
' Adds a CodeCommentStatement to the collection.
collection.Add(New CodeCommentStatement("Test comment"))