ResourceMonitoringBuilderExtensions.ConfigureMonitor 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection) |
設定資源監視器。 |
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>) |
設定資源監視器。 |
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)
設定資源監視器。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^ ConfigureMonitor(Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder ConfigureMonitor (this Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member ConfigureMonitor : Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder
<Extension()>
Public Function ConfigureMonitor (builder As IResourceMonitorBuilder, section As IConfigurationSection) As IResourceMonitorBuilder
參數
- builder
- IResourceMonitorBuilder
用來設定追蹤器的產生器實例。
傳回
builder
的值。
例外狀況
builder
或 section
是 null
。
適用於
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)
設定資源監視器。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^ ConfigureMonitor(Microsoft::Extensions::Diagnostics::ResourceMonitoring::IResourceMonitorBuilder ^ builder, Action<Microsoft::Extensions::Diagnostics::ResourceMonitoring::ResourceMonitoringOptions ^> ^ configure);
public static Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder ConfigureMonitor (this Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder builder, Action<Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceMonitoringOptions> configure);
static member ConfigureMonitor : Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder * Action<Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceMonitoringOptions> -> Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitorBuilder
<Extension()>
Public Function ConfigureMonitor (builder As IResourceMonitorBuilder, configure As Action(Of ResourceMonitoringOptions)) As IResourceMonitorBuilder
參數
- builder
- IResourceMonitorBuilder
用來設定追蹤器的產生器實例。
- configure
- Action<ResourceMonitoringOptions>
委派以設定 ResourceMonitoringOptions。
傳回
builder
的值。
例外狀況
builder
或 configure
是 null
。