ContextualOptionsServiceCollectionExtensions.AddContextualOptions メソッド

定義

コンテキスト オプションを使用するために必要なサービスを追加します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddContextualOptions(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddContextualOptions (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddContextualOptions : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddContextualOptions (services As IServiceCollection) As IServiceCollection

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollection

戻り値

services の値。

適用対象