Aracılığıyla paylaş


CodeAttributeArgumentCollection.Add(CodeAttributeArgument) Yöntem

Tanım

Belirtilen CodeAttributeArgument nesneyi koleksiyona ekler.

public:
 int Add(System::CodeDom::CodeAttributeArgument ^ value);
public int Add (System.CodeDom.CodeAttributeArgument value);
member this.Add : System.CodeDom.CodeAttributeArgument -> int
Public Function Add (value As CodeAttributeArgument) As Integer

Parametreler

Döndürülenler

Yeni öğenin eklendiği dizin.

Örnekler

Aşağıdaki örnekte bir örneğe nesne CodeAttributeArgumentCollection ekleme CodeAttributeArgument işlemi gösterilmektedir.

// Adds a CodeAttributeArgument to the collection.
collection->Add( gcnew CodeAttributeArgument( "Test Boolean Argument",gcnew CodePrimitiveExpression( true ) ) );
// Adds a CodeAttributeArgument to the collection.
collection.Add( new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true)) );
' Adds a CodeAttributeArgument to the collection.
collection.Add(New CodeAttributeArgument("Test Boolean Argument", New CodePrimitiveExpression(True)))

Şunlara uygulanır

Ayrıca bkz.