Modifica

Condividi tramite


RuleSettings.Profile Property

Definition

Gets or sets the name of the ProfileSettings object this rule applies to.

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

Property Value

The name of the ProfileSettings object this rule applies to.

Attributes

Examples

The following code example shows how to use the Profile property. This code example is part of a larger example provided for the HealthMonitoringSection class.

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

Remarks

The ProfileSettings object referenced by this property must be contained by the same HealthMonitoringSection object that also contains this RuleSettings

object.

Applies to

See also