CodeExpressionCollection.AddRange CodeExpressionCollection.AddRange CodeExpressionCollection.AddRange CodeExpressionCollection.AddRange Method

Definizione

Consente di copiare gli elementi della matrice specificata alla fine della raccolta.Copies the elements of the specified array to the end of the collection.

Overload

AddRange(CodeExpression[]) AddRange(CodeExpression[]) AddRange(CodeExpression[]) AddRange(CodeExpression[])

Consente di copiare gli elementi della matrice specificata alla fine della raccolta.Copies the elements of the specified array to the end of the collection.

AddRange(CodeExpressionCollection) AddRange(CodeExpressionCollection) AddRange(CodeExpressionCollection) AddRange(CodeExpressionCollection)

Copia il contenuto di un altro oggetto CodeExpressionCollection alla fine dell'insieme.Copies the contents of another CodeExpressionCollection object to the end of the collection.

AddRange(CodeExpression[]) AddRange(CodeExpression[]) AddRange(CodeExpression[]) AddRange(CodeExpression[])

Consente di copiare gli elementi della matrice specificata alla fine della raccolta.Copies the elements of the specified array to the end of the collection.

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

Parametri

value
CodeExpression[]

Matrice di tipo CodeExpression contenente gli oggetti da aggiungere all'insieme.An array of type CodeExpression that contains the objects to add to the collection.

Eccezioni

Esempi

Nell'esempio seguente viene illustrato come utilizzare l' AddRange(CodeExpression[]) overload del metodo per aggiungere i membri di CodeExpression una matrice a CodeExpressionCollectionun oggetto.The following example demonstrates how to use the AddRange(CodeExpression[]) method overload to add the members of a CodeExpression array to a CodeExpressionCollection.

// Adds an array of CodeExpression objects to the collection.
array<CodeExpression^>^expressions = {gcnew CodePrimitiveExpression( true ),gcnew CodePrimitiveExpression( true )};
collection->AddRange( expressions );

// Adds a collection of CodeExpression objects to the collection.
CodeExpressionCollection^ expressionsCollection = gcnew CodeExpressionCollection;
expressionsCollection->Add( gcnew CodePrimitiveExpression( true ) );
expressionsCollection->Add( gcnew CodePrimitiveExpression( true ) );
collection->AddRange( expressionsCollection );
// Adds an array of CodeExpression objects to the collection.
CodeExpression[] expressions = { new CodePrimitiveExpression(true), new CodePrimitiveExpression(true) };
collection.AddRange( expressions );

// Adds a collection of CodeExpression objects to the collection.
CodeExpressionCollection expressionsCollection = new CodeExpressionCollection();
expressionsCollection.Add( new CodePrimitiveExpression(true) );
expressionsCollection.Add( new CodePrimitiveExpression(true) );
collection.AddRange( expressionsCollection );
' Adds an array of CodeExpression objects to the collection.
Dim expressions As CodeExpression() = {New CodePrimitiveExpression(True), New CodePrimitiveExpression(True)}
collection.AddRange(expressions)

' Adds a collection of CodeExpression objects to the collection.
Dim expressionsCollection As New CodeExpressionCollection()
expressionsCollection.Add(New CodePrimitiveExpression(True))
expressionsCollection.Add(New CodePrimitiveExpression(True))
collection.AddRange(expressionsCollection)
Vedi anche

AddRange(CodeExpressionCollection) AddRange(CodeExpressionCollection) AddRange(CodeExpressionCollection) AddRange(CodeExpressionCollection)

Copia il contenuto di un altro oggetto CodeExpressionCollection alla fine dell'insieme.Copies the contents of another CodeExpressionCollection object to the end of the collection.

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

Parametri

value
CodeExpressionCollection CodeExpressionCollection CodeExpressionCollection CodeExpressionCollection

Oggetto CodeExpressionCollection che contiene gli oggetti da aggiungere all'insieme.A CodeExpressionCollection that contains the objects to add to the collection.

Eccezioni

Esempi

Nell'esempio seguente viene illustrato come utilizzare l' AddRange(CodeExpressionCollection) overload del metodo per aggiungere i membri di CodeExpressionCollection un oggetto a CodeExpressionCollectionun altro.The following example demonstrates how to use the AddRange(CodeExpressionCollection) method overload to add the members of one CodeExpressionCollection object to another CodeExpressionCollection.

// Adds an array of CodeExpression objects to the collection.
array<CodeExpression^>^expressions = {gcnew CodePrimitiveExpression( true ),gcnew CodePrimitiveExpression( true )};
collection->AddRange( expressions );

// Adds a collection of CodeExpression objects to the collection.
CodeExpressionCollection^ expressionsCollection = gcnew CodeExpressionCollection;
expressionsCollection->Add( gcnew CodePrimitiveExpression( true ) );
expressionsCollection->Add( gcnew CodePrimitiveExpression( true ) );
collection->AddRange( expressionsCollection );
// Adds an array of CodeExpression objects to the collection.
CodeExpression[] expressions = { new CodePrimitiveExpression(true), new CodePrimitiveExpression(true) };
collection.AddRange( expressions );

// Adds a collection of CodeExpression objects to the collection.
CodeExpressionCollection expressionsCollection = new CodeExpressionCollection();
expressionsCollection.Add( new CodePrimitiveExpression(true) );
expressionsCollection.Add( new CodePrimitiveExpression(true) );
collection.AddRange( expressionsCollection );
' Adds an array of CodeExpression objects to the collection.
Dim expressions As CodeExpression() = {New CodePrimitiveExpression(True), New CodePrimitiveExpression(True)}
collection.AddRange(expressions)

' Adds a collection of CodeExpression objects to the collection.
Dim expressionsCollection As New CodeExpressionCollection()
expressionsCollection.Add(New CodePrimitiveExpression(True))
expressionsCollection.Add(New CodePrimitiveExpression(True))
collection.AddRange(expressionsCollection)
Vedi anche

Si applica a