Aracılığıyla paylaş


CodeTypeReferenceCollection.AddRange Yöntem

Tanım

Belirtilen CodeTypeReference dizinin öğelerini koleksiyonun sonuna kopyalar.

Aşırı Yüklemeler

AddRange(CodeTypeReference[])

Belirtilen CodeTypeReference dizinin öğelerini koleksiyonun sonuna kopyalar.

AddRange(CodeTypeReferenceCollection)

Belirtilen CodeTypeReferenceCollection öğesinin içeriğini koleksiyonun sonuna ekler.

AddRange(CodeTypeReference[])

Kaynak:
CodeTypeReferenceCollection.cs
Kaynak:
CodeTypeReferenceCollection.cs
Kaynak:
CodeTypeReferenceCollection.cs

Belirtilen CodeTypeReference dizinin öğelerini koleksiyonun sonuna kopyalar.

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

Parametreler

value
CodeTypeReference[]

Koleksiyona eklenecek nesneleri içeren tür CodeTypeReference dizisi.

Özel durumlar

value, null değeridir.

Örnekler

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

Ayrıca bkz.

Şunlara uygulanır

AddRange(CodeTypeReferenceCollection)

Kaynak:
CodeTypeReferenceCollection.cs
Kaynak:
CodeTypeReferenceCollection.cs
Kaynak:
CodeTypeReferenceCollection.cs

Belirtilen CodeTypeReferenceCollection öğesinin içeriğini koleksiyonun sonuna ekler.

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)

Parametreler

value
CodeTypeReferenceCollection

CodeTypeReferenceCollection Koleksiyona eklenecek nesneleri içeren.

Özel durumlar

value, null değeridir.

Örnekler

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

Ayrıca bkz.

Şunlara uygulanır