DataProtectionServiceCollectionExtensions.AddDataProtection Метод

Определение

Перегрузки

AddDataProtection(IServiceCollection)

Добавляет службы защиты данных в указанный IServiceCollectionобъект .

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Добавляет службы защиты данных в указанный IServiceCollectionобъект .

AddDataProtection(IServiceCollection)

Добавляет службы защиты данных в указанный IServiceCollectionобъект .

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddDataProtection (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddDataProtection : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function AddDataProtection (services As IServiceCollection) As IDataProtectionBuilder

Параметры

services
IServiceCollection

Коллекция IServiceCollection, в которую добавляются службы.

Возвращаемое значение

Применяется к

AddDataProtection(IServiceCollection, Action<DataProtectionOptions>)

Добавляет службы защиты данных в указанный IServiceCollectionобъект .

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder AddDataProtection (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.DataProtection.DataProtectionOptions> setupAction);
static member AddDataProtection : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.DataProtection.DataProtectionOptions> -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function AddDataProtection (services As IServiceCollection, setupAction As Action(Of DataProtectionOptions)) As IDataProtectionBuilder

Параметры

services
IServiceCollection

Коллекция IServiceCollection, в которую добавляются службы.

setupAction
Action<DataProtectionOptions>

Действие Action<T> для настройки предоставленного объекта DataProtectionOptions.

Возвращаемое значение

Ссылка на этот экземпляр после завершения операции.

Применяется к