TraceSection.PageOutput Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan apakah informasi jejak ASP.NET ditambahkan ke output setiap halaman.

[System.Configuration.ConfigurationProperty("pageOutput", DefaultValue=false)]
public bool PageOutput { get; set; }

Nilai Properti

true jika informasi pelacakan ditambahkan ke setiap halaman; jika tidak, false. Defaultnya adalah false.

Atribut

Contoh

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


// Get the current PageOutput property value.
Boolean pageOutputValue = traceSection.PageOutput;

// Set the PageOutput property to true.
traceSection.PageOutput = true;

Berlaku untuk

Produk Versi
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1