RuleSettings.Profile 属性

定义

获取或设置此规则应用于的对象的名称 ProfileSettings

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

属性值

此规则适用的对象的名称 ProfileSettings

属性

示例

下面的代码示例演示如何使用该 Profile 属性。 该代码示例是 HealthMonitoringSection 类中的一个较大示例的一部分。

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

注解

ProfileSettings此属性引用的对象必须由同时包含此属性的同一HealthMonitoringSection对象包含RuleSettings

对象。

适用于

另请参阅