TraceSection.MostRecent 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 menetapkan nilai yang menunjukkan apakah permintaan terbaru selalu disimpan di server.
public:
property bool MostRecent { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("mostRecent", DefaultValue=false)]
public bool MostRecent { get; set; }
[<System.Configuration.ConfigurationProperty("mostRecent", DefaultValue=false)>]
member this.MostRecent : bool with get, set
Public Property MostRecent As Boolean
Nilai Properti
true jika permintaan terbaru selalu disimpan di log jejak; jika tidak, false. Defaultnya adalah false.
- Atribut
Contoh
Contoh kode berikut menunjukkan cara menggunakan MostRecent properti . Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk TraceSection kelas .
// Get the current MostRecent property value.
Boolean mostRecentValue = traceSection.MostRecent;
// Set the MostRecent property to true.
traceSection.MostRecent = true;
' Get the current MostRecent property value.
Dim mostRecentValue As Boolean = traceSection.MostRecent
' Set the MostRecent property to true.
traceSection.MostRecent = True
Keterangan
Permintaan disimpan dalam log jejak dalam urutan kedatangannya, hingga jumlah permintaan yang ditentukan dalam RequestLimit properti. Ketika batas permintaan tercapai dan MostRecent adalah true, permintaan yang lebih lama secara otomatis dibuang dan permintaan baru terus ditambahkan ke log. Ketika batas permintaan tercapai dan MostRecent adalah false, permintaan baru dibuang hingga permintaan sebelumnya dihapus dari log atau batas permintaan ditingkatkan.