CodeCatchClauseCollection.Remove(CodeCatchClause) Метод

Определение

Удаляет указанный объект CodeCatchClause из коллекции.

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

Параметры

value
CodeCatchClause

Объект CodeCatchClause, удаляемый из коллекции.

Исключения

Указанный объект не найден в коллекции.

Примеры

В следующем примере показано, как использовать Remove метод для удаления CodeCatchClause объекта из CodeCatchClauseCollection.

// Removes the specified CodeCatchClause from the collection.
CodeCatchClause^ clause = gcnew CodeCatchClause( "e" );
collection->Remove( clause );
// Removes the specified CodeCatchClause from the collection.
CodeCatchClause clause = new CodeCatchClause("e");
collection.Remove( clause );
' Removes the specified CodeCatchClause from the collection.
Dim clause As New CodeCatchClause("e")
collection.Remove(clause)

Применяется к