Aracılığıyla paylaş


CodeCatchClauseCollection.Add(CodeCatchClause) Yöntem

Tanım

Belirtilen CodeCatchClause nesneyi koleksiyona ekler.

public:
 int Add(System::CodeDom::CodeCatchClause ^ value);
public int Add (System.CodeDom.CodeCatchClause value);
member this.Add : System.CodeDom.CodeCatchClause -> int
Public Function Add (value As CodeCatchClause) As Integer

Parametreler

value
CodeCatchClause

CodeCatchClause Eklenecek nesne.

Döndürülenler

Yeni öğenin eklendiği dizin.

Örnekler

Aşağıdaki örnekte, örneğe nasıl CodeCatchClause nesne ekleneceği gösterilmektedir CodeCatchClauseCollection .

// Adds a CodeCatchClause to the collection.
collection->Add( gcnew CodeCatchClause( "e" ) );
// Adds a CodeCatchClause to the collection.
collection.Add( new CodeCatchClause("e") );
' Adds a CodeCatchClause to the collection.
collection.Add(New CodeCatchClause("e"))

Şunlara uygulanır

Ayrıca bkz.