CodeAttributeArgumentCollection.AddRange Yöntem

Tanım

Belirtilen CodeAttributeArgument dizinin öğelerini koleksiyonun sonuna kopyalar.

Aşırı Yüklemeler

Name Description
AddRange(CodeAttributeArgument[])

Belirtilen CodeAttributeArgument dizinin öğelerini koleksiyonun sonuna kopyalar.

AddRange(CodeAttributeArgumentCollection)

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

AddRange(CodeAttributeArgument[])

Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs

Belirtilen CodeAttributeArgument dizinin öğelerini koleksiyonun sonuna kopyalar.

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

Parametreler

value
CodeAttributeArgument[]

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

Özel durumlar

value, null'e eşittir.

Örnekler

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

// Adds an array of CodeAttributeArgument objects to the collection.
CodeAttributeArgument[] arguments = { new CodeAttributeArgument(), new CodeAttributeArgument() };
collection.AddRange( arguments );

// Adds a collection of CodeAttributeArgument objects to
// the collection.
CodeAttributeArgumentCollection argumentsCollection = new CodeAttributeArgumentCollection();
argumentsCollection.Add( new CodeAttributeArgument("TestBooleanArgument", new CodePrimitiveExpression(true)) );
argumentsCollection.Add( new CodeAttributeArgument("TestIntArgument", new CodePrimitiveExpression(1)) );
collection.AddRange( argumentsCollection );
' Adds an array of CodeAttributeArgument objects to the collection.
Dim arguments As CodeAttributeArgument() = {New CodeAttributeArgument(), New CodeAttributeArgument()}
collection.AddRange(arguments)

' Adds a collection of CodeAttributeArgument objects to the collection.
Dim argumentsCollection As New CodeAttributeArgumentCollection()
argumentsCollection.Add(New CodeAttributeArgument("TestBooleanArgument", New CodePrimitiveExpression(True)))
argumentsCollection.Add(New CodeAttributeArgument("TestIntArgument", New CodePrimitiveExpression(1)))
collection.AddRange(argumentsCollection)

Ayrıca bkz.

Şunlara uygulanır

AddRange(CodeAttributeArgumentCollection)

Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs
Kaynak:
CodeAttributeArgumentCollection.cs

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

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

Parametreler

value
CodeAttributeArgumentCollection

CodeAttributeArgumentCollection Koleksiyona eklenecek nesneleri içeren bir.

Özel durumlar

value, null'e eşittir.

Örnekler

Aşağıdaki örnekte, bir nesnenin AddRange(CodeAttributeArgumentCollection) üyelerini başka bir CodeAttributeArgumentCollection nesneye eklemek için yöntem aşırı yüklemesinin nasıl kullanılacağı gösterilmektedir CodeAttributeArgumentCollection.

// Adds an array of CodeAttributeArgument objects to the collection.
CodeAttributeArgument[] arguments = { new CodeAttributeArgument(), new CodeAttributeArgument() };
collection.AddRange( arguments );

// Adds a collection of CodeAttributeArgument objects to
// the collection.
CodeAttributeArgumentCollection argumentsCollection = new CodeAttributeArgumentCollection();
argumentsCollection.Add( new CodeAttributeArgument("TestBooleanArgument", new CodePrimitiveExpression(true)) );
argumentsCollection.Add( new CodeAttributeArgument("TestIntArgument", new CodePrimitiveExpression(1)) );
collection.AddRange( argumentsCollection );
' Adds an array of CodeAttributeArgument objects to the collection.
Dim arguments As CodeAttributeArgument() = {New CodeAttributeArgument(), New CodeAttributeArgument()}
collection.AddRange(arguments)

' Adds a collection of CodeAttributeArgument objects to the collection.
Dim argumentsCollection As New CodeAttributeArgumentCollection()
argumentsCollection.Add(New CodeAttributeArgument("TestBooleanArgument", New CodePrimitiveExpression(True)))
argumentsCollection.Add(New CodeAttributeArgument("TestIntArgument", New CodePrimitiveExpression(1)))
collection.AddRange(argumentsCollection)

Ayrıca bkz.

Şunlara uygulanır