CodeParameterDeclarationExpressionCollection.Add Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Hozzáadja a megadottt CodeParameterDeclarationExpression a gyűjteményhez.
public:
int Add(System::CodeDom::CodeParameterDeclarationExpression ^ value);
public int Add(System.CodeDom.CodeParameterDeclarationExpression value);
member this.Add : System.CodeDom.CodeParameterDeclarationExpression -> int
Public Function Add (value As CodeParameterDeclarationExpression) As Integer
Paraméterek
A CodeParameterDeclarationExpression hozzáadni kívánt.
Válaszok
Az az index, amelyre az új elemet beszúrták.
Példák
Az alábbi példa bemutatja, hogyan adhat hozzá objektumot CodeParameterDeclarationExpression egy CodeParameterDeclarationExpressionCollection példányhoz.
// Adds a CodeParameterDeclarationExpression to the collection.
collection.Add( new CodeParameterDeclarationExpression(typeof(int), "testIntArgument") );
' Adds a CodeParameterDeclarationExpression to the collection.
collection.Add(New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"))