Udostępnij za pośrednictwem


DataProtectionCommonExtensions.GetDataProtector Metoda

Definicja

Przeciążenia

GetDataProtector(IServiceProvider, IEnumerable<String>)

Pobiera element IDataProtector z IServiceProvider danej listy celów.

GetDataProtector(IServiceProvider, String, String[])

Pobiera element IDataProtector z IServiceProvider danej listy celów.

GetDataProtector(IServiceProvider, IEnumerable<String>)

Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs

Pobiera element IDataProtector z IServiceProvider danej listy celów.

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

Parametry

services
IServiceProvider

Element IServiceProvider , który zawiera IDataProtectionProvider element, z którego 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 null.

Zwraca

Element IDataProtector powiązany z podanym łańcuchem przeznaczenia.

Uwagi

Jest to metoda wygody, która wywołuje GetDataProtectionProvider(IServiceProvider) polecenie CreateProtector(IDataProtectionProvider, IEnumerable<String>). Aby uzyskać więcej informacji, zobacz dokumentację tych metod.

Dotyczy

GetDataProtector(IServiceProvider, String, String[])

Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs
Źródło:
DataProtectionCommonExtensions.cs

Pobiera element IDataProtector z IServiceProvider danej listy celów.

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

Parametry

services
IServiceProvider

Element IServiceProvider , który zawiera IDataProtectionProvider element, z którego ma być generowany łańcuch celów.

purpose
String

Podstawowy cel używany 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 null.

Zwraca

Element IDataProtector powiązany z podanym łańcuchem przeznaczenia.

Uwagi

Jest to metoda wygody, która wywołuje GetDataProtectionProvider(IServiceProvider) polecenie CreateProtector(IDataProtectionProvider, String, String[]). Aby uzyskać więcej informacji, zobacz dokumentację tych metod.

Dotyczy