CodeCommentStatementCollection.Add(CodeCommentStatement) Yöntem

Tanım

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

Döndürülenler

Yeni öğenin eklendiği dizin.

Örnekler

Aşağıdaki örnekte bir örneğe nesne CodeCommentStatement ekleme CodeCommentStatementCollection işlemi gösterilmektedir.

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

Şunlara uygulanır

Ayrıca bkz.