DataProtectionCommonExtensions.GetDataProtectionProvider 메서드

정의

에서 를 IDataProtectionProvider 검색합니다 IServiceProvider.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ GetDataProtectionProvider(IServiceProvider ^ services);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider GetDataProtectionProvider (this IServiceProvider services);
static member GetDataProtectionProvider : IServiceProvider -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
<Extension()>
Public Function GetDataProtectionProvider (services As IServiceProvider) As IDataProtectionProvider

매개 변수

services
IServiceProvider

를 검색할 서비스 공급자입니다 IDataProtectionProvider.

반환

IDataProtectionProvider입니다. 이 메서드는 null을 반환하지 않도록 보장됩니다.

예외

에 서비스가 없 IDataProtectionProvider 으면 입니다 services.

적용 대상