DefaultServiceProviderFactory 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| DefaultServiceProviderFactory() |
初始化一個新的類別實例 DefaultServiceProviderFactory ,並保留預設選項。 |
| DefaultServiceProviderFactory(ServiceProviderOptions) |
使用指定的 DefaultServiceProviderFactory,初始化 |
DefaultServiceProviderFactory()
初始化一個新的類別實例 DefaultServiceProviderFactory ,並保留預設選項。
public:
DefaultServiceProviderFactory();
public DefaultServiceProviderFactory();
Public Sub New ()
適用於
DefaultServiceProviderFactory(ServiceProviderOptions)
使用指定的 DefaultServiceProviderFactory,初始化 options 類別的新實例。
public:
DefaultServiceProviderFactory(Microsoft::Extensions::DependencyInjection::ServiceProviderOptions ^ options);
public DefaultServiceProviderFactory(Microsoft.Extensions.DependencyInjection.ServiceProviderOptions options);
new Microsoft.Extensions.DependencyInjection.DefaultServiceProviderFactory : Microsoft.Extensions.DependencyInjection.ServiceProviderOptions -> Microsoft.Extensions.DependencyInjection.DefaultServiceProviderFactory
Public Sub New (options As ServiceProviderOptions)
參數
- options
- ServiceProviderOptions
在這種情況下可以使用的選項。