共用方式為


ProfileSettings.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 的一部分。

profileSetting.Custom = "MyEvaluators.MyCustomeEvaluator, MyCustom.dll";
profileSetting.Custom = "MyEvaluators.MyCustomeEvaluator, MyCustom.dll"

備註

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

適用於

另請參閱