CodeCatchClauseCollection.AddRange 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 CodeCatchClause 배열의 요소를 컬렉션의 끝에 복사합니다.
오버로드
AddRange(CodeCatchClause[]) |
지정된 CodeCatchClause 배열의 요소를 컬렉션의 끝에 복사합니다. |
AddRange(CodeCatchClauseCollection) |
다른 CodeCatchClauseCollection 개체의 내용을 컬렉션 끝에 복사합니다. |
AddRange(CodeCatchClause[])
- Source:
- CodeCatchClauseCollection.cs
- Source:
- CodeCatchClauseCollection.cs
- Source:
- CodeCatchClauseCollection.cs
지정된 CodeCatchClause 배열의 요소를 컬렉션의 끝에 복사합니다.
public:
void AddRange(cli::array <System::CodeDom::CodeCatchClause ^> ^ value);
public void AddRange (System.CodeDom.CodeCatchClause[] value);
member this.AddRange : System.CodeDom.CodeCatchClause[] -> unit
Public Sub AddRange (value As CodeCatchClause())
매개 변수
- value
- CodeCatchClause[]
컬렉션에 추가할 개체가 들어 있는 CodeCatchClause 형식의 배열입니다.
예외
value
이(가) null
인 경우
예제
다음 예제에서는 메서드 오버로드를 사용하여 AddRange(CodeCatchClause[]) 개체 CodeCatchClauseCollection배열의 CodeCatchClause 멤버를 에 추가하는 방법을 보여 줍니다.
// Adds an array of CodeCatchClause objects to the collection.
array<CodeCatchClause^>^clauses = {gcnew CodeCatchClause,gcnew CodeCatchClause};
collection->AddRange( clauses );
// Adds a collection of CodeCatchClause objects to the collection.
CodeCatchClauseCollection^ clausesCollection = gcnew CodeCatchClauseCollection;
clausesCollection->Add( gcnew CodeCatchClause( "e",gcnew CodeTypeReference( System::ArgumentOutOfRangeException::typeid ) ) );
clausesCollection->Add( gcnew CodeCatchClause( "e" ) );
collection->AddRange( clausesCollection );
// Adds an array of CodeCatchClause objects to the collection.
CodeCatchClause[] clauses = { new CodeCatchClause(), new CodeCatchClause() };
collection.AddRange( clauses );
// Adds a collection of CodeCatchClause objects to the collection.
CodeCatchClauseCollection clausesCollection = new CodeCatchClauseCollection();
clausesCollection.Add( new CodeCatchClause("e", new CodeTypeReference(typeof(System.ArgumentOutOfRangeException))) );
clausesCollection.Add( new CodeCatchClause("e") );
collection.AddRange( clausesCollection );
' Adds an array of CodeCatchClause objects to the collection.
Dim clauses As CodeCatchClause() = {New CodeCatchClause(), New CodeCatchClause()}
collection.AddRange(clauses)
' Adds a collection of CodeCatchClause objects to the collection.
Dim clausesCollection As New CodeCatchClauseCollection()
clausesCollection.Add(New CodeCatchClause("e", New CodeTypeReference(GetType(System.ArgumentOutOfRangeException))))
clausesCollection.Add(New CodeCatchClause("e"))
collection.AddRange(clausesCollection)
추가 정보
적용 대상
AddRange(CodeCatchClauseCollection)
- Source:
- CodeCatchClauseCollection.cs
- Source:
- CodeCatchClauseCollection.cs
- Source:
- CodeCatchClauseCollection.cs
다른 CodeCatchClauseCollection 개체의 내용을 컬렉션 끝에 복사합니다.
public:
void AddRange(System::CodeDom::CodeCatchClauseCollection ^ value);
public void AddRange (System.CodeDom.CodeCatchClauseCollection value);
member this.AddRange : System.CodeDom.CodeCatchClauseCollection -> unit
Public Sub AddRange (value As CodeCatchClauseCollection)
매개 변수
컬렉션에 추가할 개체가 들어 있는 CodeCatchClauseCollection입니다.
예외
value
이(가) null
인 경우
예제
다음 예제에서는 메서드 오버로드를 사용하여 AddRange(CodeCatchClauseCollection) 한 CodeCatchClauseCollection 개체의 멤버를 다른 CodeCatchClauseCollection에 추가하는 방법을 보여 줍니다.
// Adds an array of CodeCatchClause objects to the collection.
array<CodeCatchClause^>^clauses = {gcnew CodeCatchClause,gcnew CodeCatchClause};
collection->AddRange( clauses );
// Adds a collection of CodeCatchClause objects to the collection.
CodeCatchClauseCollection^ clausesCollection = gcnew CodeCatchClauseCollection;
clausesCollection->Add( gcnew CodeCatchClause( "e",gcnew CodeTypeReference( System::ArgumentOutOfRangeException::typeid ) ) );
clausesCollection->Add( gcnew CodeCatchClause( "e" ) );
collection->AddRange( clausesCollection );
// Adds an array of CodeCatchClause objects to the collection.
CodeCatchClause[] clauses = { new CodeCatchClause(), new CodeCatchClause() };
collection.AddRange( clauses );
// Adds a collection of CodeCatchClause objects to the collection.
CodeCatchClauseCollection clausesCollection = new CodeCatchClauseCollection();
clausesCollection.Add( new CodeCatchClause("e", new CodeTypeReference(typeof(System.ArgumentOutOfRangeException))) );
clausesCollection.Add( new CodeCatchClause("e") );
collection.AddRange( clausesCollection );
' Adds an array of CodeCatchClause objects to the collection.
Dim clauses As CodeCatchClause() = {New CodeCatchClause(), New CodeCatchClause()}
collection.AddRange(clauses)
' Adds a collection of CodeCatchClause objects to the collection.
Dim clausesCollection As New CodeCatchClauseCollection()
clausesCollection.Add(New CodeCatchClause("e", New CodeTypeReference(GetType(System.ArgumentOutOfRangeException))))
clausesCollection.Add(New CodeCatchClause("e"))
collection.AddRange(clausesCollection)
추가 정보
적용 대상
.NET