DataProtectionCommonExtensions.CreateProtector Metoda

Definicja

Przeciążenia

CreateProtector(IDataProtectionProvider, IEnumerable<String>)

Tworzy daną IDataProtector listę celów.

CreateProtector(IDataProtectionProvider, String, String[])

Tworzy daną IDataProtector listę celów.

CreateProtector(IDataProtectionProvider, IEnumerable<String>)

Tworzy daną IDataProtector listę celów.

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

Parametry

provider
IDataProtectionProvider

Wartość IDataProtectionProvider , z której ma być generowany łańcuch celów.

purposes
IEnumerable<String>

Lista celów, które przyczyniają się do łańcucha celów. Ta lista musi zawierać co najmniej jeden element i może nie zawierać elementów o wartości null.

Zwraca

Powiązanie IDataProtector z podanym łańcuchem celów.

Uwagi

Jest to metoda wygody, która łączy w łańcuch kilka wywołań metody CreateProtector(String). Aby uzyskać więcej informacji, zobacz dokumentację tej metody.

Dotyczy

CreateProtector(IDataProtectionProvider, String, String[])

Tworzy daną IDataProtector listę celów.

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

Parametry

provider
IDataProtectionProvider

Wartość IDataProtectionProvider , z której ma być generowany łańcuch celów.

purpose
String

Podstawowym celem użytym do utworzenia elementu IDataProtector.

subPurposes
String[]

Opcjonalna lista celów pomocniczych, które przyczyniają się do łańcucha celów. Jeśli ta lista nie może zawierać elementów o wartości null.

Zwraca

Powiązanie IDataProtector z podanym łańcuchem celów.

Uwagi

Jest to metoda wygody, która łączy w łańcuch kilka wywołań metody CreateProtector(String). Aby uzyskać więcej informacji, zobacz dokumentację tej metody.

Dotyczy