Share via


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

屬性值

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%」

適用於

另請參閱