CodeExpressionCollection.Remove(CodeExpression) 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.
Eltávolítja a megadott CodeExpression objektumot a gyűjteményből.
public:
void Remove(System::CodeDom::CodeExpression ^ value);
public void Remove(System.CodeDom.CodeExpression value);
member this.Remove : System.CodeDom.CodeExpression -> unit
Public Sub Remove (value As CodeExpression)
Paraméterek
- value
- CodeExpression
A CodeExpression gyűjteményből eltávolítandó objektum.
Kivételek
A megadott objektum nem található a gyűjteményben.
Példák
Az alábbi példa bemutatja, hogyan lehet a Remove metódussal törölni egy objektumot egy CodeExpressionCodeExpressionCollection objektumból.
// Removes the specified CodeExpression from the collection.
CodeExpression expression = new CodePrimitiveExpression(true);
collection.Remove( expression );
' Removes the specified CodeExpression from the collection.
Dim expression = New CodePrimitiveExpression(True)
collection.Remove(expression)