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