HttpCookieCollection::Remove Method (String^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes the cookie with the specified name from the collection.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
void Remove(
	String^ name
)

Parameters

name
Type: System::String^

The name of the cookie to remove from the collection.

If a cookie with the specified name does not exist in the collection, no exception is thrown.

The following example removes a cookie from the collection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: