Deletes a cookie.
Namespace: Microsoft.IdentityModel.Web
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As CookieHandler
Dim name As String
Dim path As String
Dim domain As String
Dim context As HttpContext

instance.Delete(name, path, domain, context)

Syntax

Visual Basic
Public Sub Delete ( _
		name As String, _
		path As String, _
		domain As String, _
		context As HttpContext _
)
C#
public void Delete (
		string name,
		string path,
		string domain,
		HttpContext context
)
C++
public:
void Delete (
		String^ name, 
		String^ path, 
		String^ domain, 
		HttpContext^ context
)
J#
public void Delete (
		String name, 
		String path, 
		String domain, 
		HttpContext context
)
JScript
public function Delete (
		name : String, 
		path : String, 
		domain : String, 
		context : HttpContext
)

Parameters

name

Name for the cookie

path

Path for the cookie

domain

Domain for the cookie

context

HttpContext for the request

Exceptions

Exception type Condition
ArgumentNullException

When name is null or empty

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also