This documentation is archived and is not being maintained.
HttpCookieCollection.Remove Method
.NET Framework 1.1
Removes the cookie with the specified name from the collection.
[Visual Basic] 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 );
Parameters
- name
- The name of the cookie to remove from the collection.
Example
The following example removes a cookie from the collection.
[Visual Basic] MyCookieCollection.Remove(MyCookie) [C#] MyCookieCollection.Remove(MyCookie); [C++] MyCookieCollection->Remove(MyCookie); [JScript] myCookieCollection.Remove(myCookieName)
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpCookieCollection Class | HttpCookieCollection Members | System.Web Namespace
Show: