共用方式為


RuleSettings.Custom 屬性

定義

取得或設定一個自訂類別的完全限定型別,該類別實作 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"

備註

型別參考的形成方式如下(括號內的項目不需): 命名空間TypenameAssemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z]。 例如,「ExampleNameSpace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, culture=neutral, PublicKeyToken=%MICROSOFT_PUBLICKEY%」

適用於

另請參閱