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"))

적용 대상

추가 정보