RuleSettings.Provider Propriedade

Definição

Obtém ou define o nome do objeto ProviderSettings ao qual esta regra se aplica.Gets or sets the name of the ProviderSettings object this rule applies to.

public:
 property System::String ^ Provider { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("provider", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public string Provider { get; set; }
[<System.Configuration.ConfigurationProperty("provider", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.Provider : string with get, set
Public Property Provider As String

Valor da propriedade

String

O nome do objeto ProviderSettings ao qual esta regra se aplica.The name of the ProviderSettings object this rule applies to.

Atributos

Exemplos

O exemplo de código a seguir mostra como usar a Provider propriedade.The following code example shows how to use the Provider property. Este exemplo de código faz parte de um exemplo maior fornecido para a HealthMonitoringSection classe.This code example is part of a larger example provided for the HealthMonitoringSection class.

ruleSetting.Provider = "EventLogProvider";
ruleSetting.Provider = "EventLogProvider"

Comentários

O ProviderSettings objeto referenciado por essa propriedade deve estar contido no mesmo HealthMonitoringSection objeto que também contém esse RuleSettings objeto.The ProviderSettings object referenced by this property must be contained by the same HealthMonitoringSection object that also contains this RuleSettings object.

Aplica-se a

Confira também