WindowsSecurityToken Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy WindowsSecurityToken.
Przeciążenia
| Nazwa | Opis |
|---|---|
| WindowsSecurityToken() |
Inicjuje nowe wystąpienie klasy WindowsSecurityToken. |
| WindowsSecurityToken(WindowsIdentity) |
Inicjuje nowe wystąpienie WindowsSecurityToken klasy przy użyciu użytkownika systemu Windows. |
| WindowsSecurityToken(WindowsIdentity, String) |
Inicjuje nowe wystąpienie WindowsSecurityToken klasy przy użyciu użytkownika systemu Windows. |
| WindowsSecurityToken(WindowsIdentity, String, String) |
Tworzy nowe wystąpienie klasy WindowsSecurityToken. |
WindowsSecurityToken()
Inicjuje nowe wystąpienie klasy WindowsSecurityToken.
protected:
WindowsSecurityToken();
protected WindowsSecurityToken();
Protected Sub New ()
Uwagi
Ten konstruktor domyślnie nic nie robi.
Dotyczy
WindowsSecurityToken(WindowsIdentity)
Inicjuje nowe wystąpienie WindowsSecurityToken klasy przy użyciu użytkownika systemu Windows.
public:
WindowsSecurityToken(System::Security::Principal::WindowsIdentity ^ windowsIdentity);
public WindowsSecurityToken(System.Security.Principal.WindowsIdentity windowsIdentity);
new System.IdentityModel.Tokens.WindowsSecurityToken : System.Security.Principal.WindowsIdentity -> System.IdentityModel.Tokens.WindowsSecurityToken
Public Sub New (windowsIdentity As WindowsIdentity)
Parametry
- windowsIdentity
- WindowsIdentity
Element WindowsIdentity reprezentujący użytkownika systemu Windows.
Wyjątki
Parametr windowsIdentity ma wartość null.
Uwagi
Ten konstruktor tworzy unikatowy identyfikator tokenu zabezpieczającego WindowsSecurityToken i przypisuje tę wartość do Id właściwości.
Dotyczy
WindowsSecurityToken(WindowsIdentity, String)
Inicjuje nowe wystąpienie WindowsSecurityToken klasy przy użyciu użytkownika systemu Windows.
public:
WindowsSecurityToken(System::Security::Principal::WindowsIdentity ^ windowsIdentity, System::String ^ id);
public WindowsSecurityToken(System.Security.Principal.WindowsIdentity windowsIdentity, string id);
new System.IdentityModel.Tokens.WindowsSecurityToken : System.Security.Principal.WindowsIdentity * string -> System.IdentityModel.Tokens.WindowsSecurityToken
Public Sub New (windowsIdentity As WindowsIdentity, id As String)
Parametry
- windowsIdentity
- WindowsIdentity
Element WindowsIdentity reprezentujący użytkownika systemu Windows.
- id
- String
Unikatowy identyfikator tokenu zabezpieczającego.
Wyjątki
Parametr windowsIdentity ma wartość null.
— lub —
Parametr id ma wartość null.
Uwagi
Ten konstruktor wywołuje metodę Initialize w celu zainicjowania właściwości tej klasy.
Dotyczy
WindowsSecurityToken(WindowsIdentity, String, String)
Tworzy nowe wystąpienie klasy WindowsSecurityToken.
public:
WindowsSecurityToken(System::Security::Principal::WindowsIdentity ^ windowsIdentity, System::String ^ id, System::String ^ authenticationType);
public WindowsSecurityToken(System.Security.Principal.WindowsIdentity windowsIdentity, string id, string authenticationType);
new System.IdentityModel.Tokens.WindowsSecurityToken : System.Security.Principal.WindowsIdentity * string * string -> System.IdentityModel.Tokens.WindowsSecurityToken
Public Sub New (windowsIdentity As WindowsIdentity, id As String, authenticationType As String)
Parametry
- windowsIdentity
- WindowsIdentity
Element WindowsIdentity reprezentujący użytkownika systemu Windows.
- id
- String
Unikatowy identyfikator tokenu zabezpieczającego.
- authenticationType
- String
Typ uwierzytelniania tokenu zabezpieczającego.