CodeExpressionCollection.AddRange Yöntem

Tanım

Belirtilen dizinin öğelerini koleksiyonun sonuna kopyalar.

Aşırı Yüklemeler

AddRange(CodeExpression[])

Belirtilen dizinin öğelerini koleksiyonun sonuna kopyalar.

AddRange(CodeExpressionCollection)

Başka bir CodeExpressionCollection nesnenin içeriğini koleksiyonun sonuna kopyalar.

AddRange(CodeExpression[])

Kaynak:
CodeExpressionCollection.cs
Kaynak:
CodeExpressionCollection.cs
Kaynak:
CodeExpressionCollection.cs

Belirtilen dizinin öğelerini koleksiyonun sonuna kopyalar.

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

Parametreler

value
CodeExpression[]

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

Özel durumlar

value, null değeridir.

Örnekler

Aşağıdaki örnekte, bir CodeExpression dizinin CodeExpressionCollectionüyelerini bir öğesine eklemek için yöntem aşırı yüklemesinin nasıl kullanılacağı AddRange(CodeExpression[]) gösterilmektedir.

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

Ayrıca bkz.

Şunlara uygulanır

AddRange(CodeExpressionCollection)

Kaynak:
CodeExpressionCollection.cs
Kaynak:
CodeExpressionCollection.cs
Kaynak:
CodeExpressionCollection.cs

Başka bir CodeExpressionCollection nesnenin içeriğini koleksiyonun sonuna kopyalar.

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)

Parametreler

value
CodeExpressionCollection

CodeExpressionCollection Koleksiyona eklenecek nesneleri içeren bir.

Özel durumlar

value, null değeridir.

Örnekler

Aşağıdaki örnekte, bir nesnenin AddRange(CodeExpressionCollection) üyelerini başka bir CodeExpressionCollection nesnesine eklemek için yöntem aşırı yüklemesinin nasıl kullanılacağı gösterilmektedir 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)

Ayrıca bkz.

Şunlara uygulanır