DataProtectionCommonExtensions.GetDataProtectionProvider 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
에서 를 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
.