HttpCookieCollection.Remove(String) Método
Definição
Remove o cookie com o nome especificado da coleção.Removes the cookie with the specified name from the collection.
public:
void Remove(System::String ^ name);
public void Remove (string name);
member this.Remove : string -> unit
Public Sub Remove (name As String)
Parâmetros
- name
- String
O nome do cookie a ser removido da coleção.The name of the cookie to remove from the collection.
Exemplos
O exemplo a seguir remove um cookie da coleção.The following example removes a cookie from the collection.
MyCookieCollection.Remove(MyCookie);
MyCookieCollection.Remove(MyCookie)
Comentários
Se um cookie com o especificado não name existir na coleção, nenhuma exceção será lançada.If a cookie with the specified name does not exist in the collection, no exception is thrown.