System.Web Namespace HttpCookieCollection Class
Removes the cookie with the specified name from the collection.
[ VB ]
Public Sub Remove ( _
ByVal name As String _
)
[ C# ]
public void Remove (
string name
);
[ C++ ]
public: void Remove (
String* name
);
[ JScript ]
public function Remove (
name : String
);
- name
- The name of the cookie to remove from the collection.
The following example removes a cookie from the collection.
[ VB ]
myCookieCollection.Remove ( myCookie )
[ C# ]
myCookieCollection.Remove ( myCookie );
HttpCookieCollection Members