RuleSettings.Profile 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置此规则应用于的对象的名称 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
对象。