ResourceMonitoringBuilderExtensions.ConfigureMonitor Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection) |
Configure le moniteur de ressources. |
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>) |
Configure le moniteur de ressources. |
ConfigureMonitor(IResourceMonitorBuilder, IConfigurationSection)
Configure le moniteur de ressources.
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
Paramètres
- builder
- IResourceMonitorBuilder
Le générateur instance utilisé pour configurer le tracker.
- section
- IConfigurationSection
IConfigurationSection à utiliser pour configurer ResourceMonitoringOptions.
Retours
la valeur de la propriété builder
;
Exceptions
builder
ou section
a la valeur null
.
S’applique à
ConfigureMonitor(IResourceMonitorBuilder, Action<ResourceMonitoringOptions>)
Configure le moniteur de ressources.
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
Paramètres
- builder
- IResourceMonitorBuilder
Le générateur instance utilisé pour configurer le tracker.
- configure
- Action<ResourceMonitoringOptions>
Déléguer pour configurer ResourceMonitoringOptions.
Retours
la valeur de la propriété builder
;
Exceptions
builder
ou configure
a la valeur null
.