다음을 통해 공유


CodeTypeReferenceCollection.AddRange 메서드

정의

지정된 CodeTypeReference 배열의 요소를 컬렉션의 끝에 복사합니다.

오버로드

AddRange(CodeTypeReference[])

지정된 CodeTypeReference 배열의 요소를 컬렉션의 끝에 복사합니다.

AddRange(CodeTypeReferenceCollection)

지정된 CodeTypeReferenceCollection의 내용을 컬렉션의 끝에 추가합니다.

AddRange(CodeTypeReference[])

Source:
CodeTypeReferenceCollection.cs
Source:
CodeTypeReferenceCollection.cs
Source:
CodeTypeReferenceCollection.cs

지정된 CodeTypeReference 배열의 요소를 컬렉션의 끝에 복사합니다.

public:
 void AddRange(cli::array <System::CodeDom::CodeTypeReference ^> ^ value);
public void AddRange (System.CodeDom.CodeTypeReference[] value);
member this.AddRange : System.CodeDom.CodeTypeReference[] -> unit
Public Sub AddRange (value As CodeTypeReference())

매개 변수

value
CodeTypeReference[]

컬렉션에 추가할 개체를 포함하는 CodeTypeReference 형식의 배열입니다.

예외

value이(가) null인 경우

예제

// Adds an array of CodeTypeReference objects to the collection.
array<CodeTypeReference^>^references = {gcnew CodeTypeReference( bool::typeid ),gcnew CodeTypeReference( bool::typeid )};
collection->AddRange( references );

// Adds a collection of CodeTypeReference objects to the collection.
CodeTypeReferenceCollection^ referencesCollection = gcnew CodeTypeReferenceCollection;
referencesCollection->Add( gcnew CodeTypeReference( bool::typeid ) );
referencesCollection->Add( gcnew CodeTypeReference( bool::typeid ) );
collection->AddRange( referencesCollection );
// Adds an array of CodeTypeReference objects to the collection.
CodeTypeReference[] references = { new CodeTypeReference(typeof(bool)), new CodeTypeReference(typeof(bool)) };
collection.AddRange( references );

// Adds a collection of CodeTypeReference objects to the collection.
CodeTypeReferenceCollection referencesCollection = new CodeTypeReferenceCollection();
referencesCollection.Add( new CodeTypeReference(typeof(bool)) );
referencesCollection.Add( new CodeTypeReference(typeof(bool)) );
collection.AddRange( referencesCollection );
' Adds an array of CodeTypeReference objects to the collection.
Dim references As CodeTypeReference() = {New CodeTypeReference(GetType(Boolean)), New CodeTypeReference(GetType(Boolean))}
collection.AddRange(references)

' Adds a collection of CodeTypeReference objects to the collection.
Dim referencesCollection As New CodeTypeReferenceCollection()
referencesCollection.Add(New CodeTypeReference(GetType(Boolean)))
referencesCollection.Add(New CodeTypeReference(GetType(Boolean)))
collection.AddRange(referencesCollection)

추가 정보

적용 대상

AddRange(CodeTypeReferenceCollection)

Source:
CodeTypeReferenceCollection.cs
Source:
CodeTypeReferenceCollection.cs
Source:
CodeTypeReferenceCollection.cs

지정된 CodeTypeReferenceCollection의 내용을 컬렉션의 끝에 추가합니다.

public:
 void AddRange(System::CodeDom::CodeTypeReferenceCollection ^ value);
public void AddRange (System.CodeDom.CodeTypeReferenceCollection value);
member this.AddRange : System.CodeDom.CodeTypeReferenceCollection -> unit
Public Sub AddRange (value As CodeTypeReferenceCollection)

매개 변수

value
CodeTypeReferenceCollection

컬렉션에 추가할 개체를 포함하는 CodeTypeReferenceCollection입니다.

예외

value이(가) null인 경우

예제

// Adds an array of CodeTypeReference objects to the collection.
array<CodeTypeReference^>^references = {gcnew CodeTypeReference( bool::typeid ),gcnew CodeTypeReference( bool::typeid )};
collection->AddRange( references );

// Adds a collection of CodeTypeReference objects to the collection.
CodeTypeReferenceCollection^ referencesCollection = gcnew CodeTypeReferenceCollection;
referencesCollection->Add( gcnew CodeTypeReference( bool::typeid ) );
referencesCollection->Add( gcnew CodeTypeReference( bool::typeid ) );
collection->AddRange( referencesCollection );
// Adds an array of CodeTypeReference objects to the collection.
CodeTypeReference[] references = { new CodeTypeReference(typeof(bool)), new CodeTypeReference(typeof(bool)) };
collection.AddRange( references );

// Adds a collection of CodeTypeReference objects to the collection.
CodeTypeReferenceCollection referencesCollection = new CodeTypeReferenceCollection();
referencesCollection.Add( new CodeTypeReference(typeof(bool)) );
referencesCollection.Add( new CodeTypeReference(typeof(bool)) );
collection.AddRange( referencesCollection );
' Adds an array of CodeTypeReference objects to the collection.
Dim references As CodeTypeReference() = {New CodeTypeReference(GetType(Boolean)), New CodeTypeReference(GetType(Boolean))}
collection.AddRange(references)

' Adds a collection of CodeTypeReference objects to the collection.
Dim referencesCollection As New CodeTypeReferenceCollection()
referencesCollection.Add(New CodeTypeReference(GetType(Boolean)))
referencesCollection.Add(New CodeTypeReference(GetType(Boolean)))
collection.AddRange(referencesCollection)

추가 정보

적용 대상