RuleSettings.Custom 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置实现 IWebEventCustomEvaluator的自定义类的完全限定类型。
public:
property System::String ^ Custom { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("custom", DefaultValue="")]
public string Custom { get; set; }
[<System.Configuration.ConfigurationProperty("custom", DefaultValue="")>]
member this.Custom : string with get, set
Public Property Custom As String
属性值
实现 IWebEventCustomEvaluator的自定义类的完全限定类型。
- 属性
示例
下面的代码示例演示如何使用该 Custom 属性。 该代码示例是 HealthMonitoringSection 类中的一个较大示例的一部分。
ruleSetting.Custom = "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll";
ruleSetting.Custom = "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll"
注解
类型引用的格式如下(括号中的项不是必需的): 命名空间。Typename, Assemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z]。 例如,“ExampleNameSpace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, Culture=neutral, PublicKeyToken=%MICROSOFT_PUBLICKEY%”