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 を返さないことが保証されています。
例外
にservicesサービスが存在しないIDataProtectionProvider場合。