CodeCatchClauseCollection.Add(CodeCatchClause) メソッド

定義

指定した CodeCatchClause オブジェクトをコレクションに追加します。

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

パラメーター

value
CodeCatchClause

追加する CodeCatchClause オブジェクト。

返品

新しい要素が挿入されたインデックス。

次の例では、CodeCatchClause インスタンスにCodeCatchClauseCollection オブジェクトを追加する方法を示します。

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

適用対象

こちらもご覧ください