Condividi tramite


CodeTypeReferenceCollection.AddRange Metodo

Definizione

Copia gli elementi della matrice di oggetti CodeTypeReference specificata alla fine dell'insieme.

Overload

AddRange(CodeTypeReference[])

Copia gli elementi della matrice di oggetti CodeTypeReference specificata alla fine dell'insieme.

AddRange(CodeTypeReferenceCollection)

Consente di aggiungere alla fine dell'insieme il contenuto dell'oggetto CodeTypeReferenceCollection specificato.

AddRange(CodeTypeReference[])

Origine:
CodeTypeReferenceCollection.cs
Origine:
CodeTypeReferenceCollection.cs
Origine:
CodeTypeReferenceCollection.cs

Copia gli elementi della matrice di oggetti CodeTypeReference specificata alla fine dell'insieme.

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

Parametri

value
CodeTypeReference[]

Matrice di tipo CodeTypeReference contenente gli oggetti da aggiungere all'insieme.

Eccezioni

value è null.

Esempio

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

Vedi anche

Si applica a

AddRange(CodeTypeReferenceCollection)

Origine:
CodeTypeReferenceCollection.cs
Origine:
CodeTypeReferenceCollection.cs
Origine:
CodeTypeReferenceCollection.cs

Consente di aggiungere alla fine dell'insieme il contenuto dell'oggetto CodeTypeReferenceCollection specificato.

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)

Parametri

value
CodeTypeReferenceCollection

Oggetto CodeTypeReferenceCollection contenente gli oggetti da aggiungere all'insieme.

Eccezioni

value è null.

Esempio

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

Vedi anche

Si applica a