ProfileSettings.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 的一部分。
profileSetting.Custom = "MyEvaluators.MyCustomeEvaluator, MyCustom.dll";
profileSetting.Custom = "MyEvaluators.MyCustomeEvaluator, MyCustom.dll"
備註
型別參考的形成方式如下(括號內的項目不需): 命名空間。Typename、 Assemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z]。 例如,「ExampleNameSpace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, culture=neutral, PublicKeyToken=%MICROSOFT_PUBLICKEY%」