DataProtectionCommonExtensions.CreateProtector Metodo

Definizione

Overload

CreateProtector(IDataProtectionProvider, IEnumerable<String>)

Crea un IDataProtector elenco di scopi specificato.

CreateProtector(IDataProtectionProvider, String, String[])

Crea un IDataProtector elenco di scopi specificato.

CreateProtector(IDataProtectionProvider, IEnumerable<String>)

Crea un IDataProtector elenco di scopi specificato.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtector ^ CreateProtector(Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ provider, System::Collections::Generic::IEnumerable<System::String ^> ^ purposes);
public static Microsoft.AspNetCore.DataProtection.IDataProtector CreateProtector (this Microsoft.AspNetCore.DataProtection.IDataProtectionProvider provider, System.Collections.Generic.IEnumerable<string> purposes);
static member CreateProtector : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * seq<string> -> Microsoft.AspNetCore.DataProtection.IDataProtector
<Extension()>
Public Function CreateProtector (provider As IDataProtectionProvider, purposes As IEnumerable(Of String)) As IDataProtector

Parametri

provider
IDataProtectionProvider

Oggetto IDataProtectionProvider da cui generare la catena di scopo.

purposes
IEnumerable<String>

Elenco di scopi che contribuiscono alla catena di scopi. Questo elenco deve contenere almeno un elemento e potrebbe non contenere elementi Null.

Restituisce

Un oggetto IDataProtector legato alla catena di scopi fornita.

Commenti

Si tratta di un metodo pratico che concatena diverse chiamate a CreateProtector(String). Per altre informazioni, vedere la documentazione del metodo.

Si applica a

CreateProtector(IDataProtectionProvider, String, String[])

Crea un IDataProtector elenco di scopi specificato.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtector ^ CreateProtector(Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ provider, System::String ^ purpose, ... cli::array <System::String ^> ^ subPurposes);
public static Microsoft.AspNetCore.DataProtection.IDataProtector CreateProtector (this Microsoft.AspNetCore.DataProtection.IDataProtectionProvider provider, string purpose, params string[] subPurposes);
static member CreateProtector : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider * string * string[] -> Microsoft.AspNetCore.DataProtection.IDataProtector
<Extension()>
Public Function CreateProtector (provider As IDataProtectionProvider, purpose As String, ParamArray subPurposes As String()) As IDataProtector

Parametri

provider
IDataProtectionProvider

Oggetto IDataProtectionProvider da cui generare la catena di scopo.

purpose
String

Scopo primario usato per creare l'oggetto IDataProtector.

subPurposes
String[]

Elenco facoltativo di scopi secondari che contribuiscono alla catena di scopo. Se questo elenco non può contenere elementi Null.

Restituisce

Un oggetto IDataProtector legato alla catena di scopi fornita.

Commenti

Si tratta di un metodo pratico che concatena diverse chiamate a CreateProtector(String). Per altre informazioni, vedere la documentazione del metodo.

Si applica a