Partager via


Méthode CookieHandler.Delete (String, String, String, HttpContext)

Deletes a cookie.

Espace de noms: Microsoft.IdentityModel.Web
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)

Utilisation

    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)

Syntaxe

'Déclaration
Public Sub Delete ( _
    name As String, _
    path As String, _
    domain As String, _
    context As HttpContext _
)
public void Delete (
    string name,
    string path,
    string domain,
    HttpContext context
)
public:
void Delete (
    String^ name, 
    String^ path, 
    String^ domain, 
    HttpContext^ context
)
public void Delete (
    String name, 
    String path, 
    String domain, 
    HttpContext context
)
public function Delete (
    name : String, 
    path : String, 
    domain : String, 
    context : HttpContext
)

Paramètres

  • name
    Name for the cookie
  • path
    Path for the cookie
  • domain
    Domain for the cookie

Exceptions

Type d'exception Condition
ArgumentNullException

When name is null or empty

Cohérence de thread

Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Plateformes de développement

Windows Server 2003, Windows Vista

Target Platforms

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

Voir aussi

Référence

Classe CookieHandler
Membres CookieHandler
Espace de noms Microsoft.IdentityModel.Web