Sdílet prostřednictvím


WindowsSecurityToken Konstruktory

Definice

Inicializuje novou instanci WindowsSecurityToken třídy.

Přetížení

Name Description
WindowsSecurityToken()

Inicializuje novou instanci WindowsSecurityToken třídy.

WindowsSecurityToken(WindowsIdentity)

Inicializuje novou instanci WindowsSecurityToken třídy pomocí uživatele systému Windows.

WindowsSecurityToken(WindowsIdentity, String)

Inicializuje novou instanci WindowsSecurityToken třídy pomocí uživatele systému Windows.

WindowsSecurityToken(WindowsIdentity, String, String)

Vytvoří novou instanci .WindowsSecurityToken

WindowsSecurityToken()

Inicializuje novou instanci WindowsSecurityToken třídy.

protected:
 WindowsSecurityToken();
protected WindowsSecurityToken();
Protected Sub New ()

Poznámky

Tento konstruktor ve výchozím nastavení nic nedělá.

Platí pro

WindowsSecurityToken(WindowsIdentity)

Inicializuje novou instanci WindowsSecurityToken třídy pomocí uživatele systému 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

A WindowsIdentity , který představuje uživatele systému Windows.

Výjimky

windowsIdentity je null.

Poznámky

Tento konstruktor vytvoří jedinečný identifikátor tokenu WindowsSecurityToken zabezpečení a přiřadí tuto hodnotu vlastnosti Id .

Platí pro

WindowsSecurityToken(WindowsIdentity, String)

Inicializuje novou instanci WindowsSecurityToken třídy pomocí uživatele systému 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

A WindowsIdentity , který představuje uživatele systému Windows.

id
String

Jedinečný identifikátor tokenu zabezpečení.

Výjimky

windowsIdentity je null.

nebo

id je null.

Poznámky

Tento konstruktor volá metodu Initialize pro inicializaci vlastností této třídy.

Platí pro

WindowsSecurityToken(WindowsIdentity, String, String)

Vytvoří novou instanci .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

A WindowsIdentity , který představuje uživatele systému Windows.

id
String

Jedinečný identifikátor tokenu zabezpečení.

authenticationType
String

Typ ověřování tokenu zabezpečení.

Platí pro