TraceSection.MostRecent Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
En son isteklerin her zaman sunucuda depolanıp depolanmadığını belirten bir değer alır veya ayarlar.
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
Özellik Değeri
true
en son istekler her zaman izleme günlüğünde depolanıyorsa; aksi takdirde , false
. Varsayılan değer: false
.
- Öznitelikler
Örnekler
Aşağıdaki kod örneği özelliğinin MostRecent nasıl kullanılacağını gösterir. Bu kod örneği, sınıfı için TraceSection sağlanan daha büyük bir örneğin parçasıdır.
// 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
Açıklamalar
İstekler, izleme günlüğünde geldikleri sırayla, özelliğinde RequestLimit belirtilen istek sayısına kadar depolanır. İstek sınırına ulaşıldığında ve MostRecent olduğunda true
, eski istekler otomatik olarak atılır ve günlüğe yeni istekler eklenmeye devam eder. İstek sınırına ulaşıldığında ve MostRecent olduğunda false
, önceki istekler günlükten kaldırılana veya istek sınırı artırılana kadar yeni istekler atılır.