Bagikan melalui


ProfileSettings.Custom Properti

Definisi

Mendapatkan atau mengatur jenis kelas kustom yang sepenuhnya memenuhi syarat yang mengimplementasikan IWebEventCustomEvaluator antarmuka.

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

Nilai Properti

Jenis kelas kustom yang sepenuhnya memenuhi syarat yang mengimplementasikan IWebEventCustomEvaluator antarmuka. Defaultnya adalah string kosong ("").

Atribut

Contoh

Contoh kode berikut menunjukkan cara menggunakan Custom properti . Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk HealthMonitoringSection kelas .

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

Keterangan

Referensi jenis dibentuk sebagai berikut (item dalam tanda kurung tidak diperlukan): Namespace. Typename, Assemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z]. Misalnya, "ExampleNameSpace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, Culture=netral, PublicKeyToken=%MICROSOFT_PUBLICKEY%"

Berlaku untuk

Lihat juga