CodeAttributeArgumentCollection.Insert(Int32, CodeAttributeArgument) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Insere o objeto especificado CodeAttributeArgument na coleção no índice especificado.
public:
void Insert(int index, System::CodeDom::CodeAttributeArgument ^ value);
public void Insert(int index, System.CodeDom.CodeAttributeArgument value);
member this.Insert : int * System.CodeDom.CodeAttributeArgument -> unit
Public Sub Insert (index As Integer, value As CodeAttributeArgument)
Parâmetros
- index
- Int32
O índice baseado em zero onde o objeto especificado deve ser inserido.
- value
- CodeAttributeArgument
O CodeAttributeArgument objeto a inserir.
Exemplos
O exemplo seguinte demonstra como usar o Insert método para adicionar um CodeAttributeArgument objeto a um CodeAttributeArgumentCollection.
// Inserts a CodeAttributeArgument at index 0 of the collection.
collection.Insert( 0, new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true)) );
' Inserts a CodeAttributeArgument at index 0 of the collection.
collection.Insert(0, New CodeAttributeArgument("Test Boolean Argument", New CodePrimitiveExpression(True)))