FormsAuthentication.Decrypt(String) Metoda

Definicja

FormsAuthenticationTicket Tworzy obiekt na podstawie zaszyfrowanego biletu uwierzytelniania formularzy przekazanego do metody .

public:
 static System::Web::Security::FormsAuthenticationTicket ^ Decrypt(System::String ^ encryptedTicket);
public static System.Web.Security.FormsAuthenticationTicket Decrypt (string encryptedTicket);
static member Decrypt : string -> System.Web.Security.FormsAuthenticationTicket
Public Shared Function Decrypt (encryptedTicket As String) As FormsAuthenticationTicket

Parametry

encryptedTicket
String

Zaszyfrowany bilet uwierzytelniania.

Zwraca

FormsAuthenticationTicket

Obiekt FormsAuthenticationTicket. encryptedTicket Jeśli parametr nie jest prawidłowym biletem, null jest zwracany.

Wyjątki

encryptedTicket to null.

-lub-

encryptedTicket jest pustym ciągiem ("").

-lub-

Długość encryptedTicket jest większa niż 4096 znaków.

-lub-

encryptedTicket jest nieprawidłowym formatem.

Dotyczy

Zobacz też