Compartir vía


CodeTypeReferenceCollection.AddRange Método

Definición

Copia los elementos de la matriz CodeTypeReference especificada al final de la colección.

Sobrecargas

AddRange(CodeTypeReference[])

Copia los elementos de la matriz CodeTypeReference especificada al final de la colección.

AddRange(CodeTypeReferenceCollection)

Agrega el contenido de la clase CodeTypeReferenceCollection especificada al final de la colección.

AddRange(CodeTypeReference[])

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

Copia los elementos de la matriz CodeTypeReference especificada al final de la colección.

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

Parámetros

value
CodeTypeReference[]

Matriz de tipo CodeTypeReference que contiene los objetos que se agregarán a la colección.

Excepciones

value es null.

Ejemplos

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

Consulte también

Se aplica a

AddRange(CodeTypeReferenceCollection)

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

Agrega el contenido de la clase CodeTypeReferenceCollection especificada al final de la colección.

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)

Parámetros

value
CodeTypeReferenceCollection

CodeTypeReferenceCollection que contiene los objetos que se agregarán a la colección.

Excepciones

value es null.

Ejemplos

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

Consulte también

Se aplica a