HttpHandlerAction.Validate Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau mengatur HttpHandlerAction validasi.
public:
property bool Validate { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("validate", DefaultValue=true)]
public bool Validate { get; set; }
[<System.Configuration.ConfigurationProperty("validate", DefaultValue=true)>]
member this.Validate : bool with get, set
Public Property Validate As Boolean
Nilai Properti
true jika validasi diizinkan; jika tidak, false.
- Atribut
Contoh
Contoh kode berikut menunjukkan cara mengakses Validate properti.
// Change the Validate for the HttpHandlerAction.
httpHandler.Validate = false;
' Change the Validate for the HttpHandlerAction.
httpHandler.Validate = False
Keterangan
Validate Jika properti adalah false, ASP.NET tidak akan mencoba memuat kelas sampai permintaan pencocokan aktual datang, berpotensi menunda kesalahan tetapi meningkatkan waktu startup.