CodeCommentStatementCollection.Add(CodeCommentStatement) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Belirtilen CodeCommentStatement nesneyi koleksiyona ekler.
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
Parametreler
- value
- CodeCommentStatement
CodeCommentStatement Eklenecek nesne.
Döndürülenler
Yeni öğenin eklendiği dizin.
Örnekler
Aşağıdaki örnekte bir örneğe nasıl nesne CodeCommentStatementCollection ekleneceği CodeCommentStatement gösterilmektedir.
// Adds a CodeCommentStatement to the collection.
collection->Add( gcnew CodeCommentStatement( "Test comment" ) );
// Adds a CodeCommentStatement to the collection.
collection.Add( new CodeCommentStatement("Test comment") );
' Adds a CodeCommentStatement to the collection.
collection.Add(New CodeCommentStatement("Test comment"))