Compartir vía


RuleSettings.Profile Propiedad

Definición

Obtiene o establece el nombre del ProfileSettings objeto al que se aplica esta regla.

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

Valor de propiedad

Nombre del objeto al que ProfileSettings se aplica esta regla.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar la Profile propiedad . Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la HealthMonitoringSection clase .

ruleSetting.Profile = "Custom";
ruleSetting.Profile = "Custom"

Comentarios

El ProfileSettings objeto al que hace referencia esta propiedad debe estar contenido por el mismo HealthMonitoringSection objeto que también contiene este objeto. RuleSettings

objeto .

Se aplica a

Consulte también