PresentationTraceLevel 列舉

定義

描述要追蹤有關特定物件的詳細資訊層級。

public enum class PresentationTraceLevel
public enum PresentationTraceLevel
type PresentationTraceLevel = 
Public Enum PresentationTraceLevel
繼承
PresentationTraceLevel

欄位

High 3

追蹤所有其他的資訊。

Low 1

追蹤部分其他的資訊。

Medium 2

追蹤中量的其他資訊。

None 0

追蹤無法使用的其他資訊。

範例

如果您在除錯程式下執行包含下列 XAML 的應用程式,輸出視窗會提供描述系結狀態和評估的資訊列:

<Window
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase"
  xmlns:src="clr-namespace:SDKSample">
  <Window.Resources>
    <src:Person x:Key="myDataSource" PersonName="Joe"/>
  </Window.Resources>
<TextBox>
    <TextBox.Text>
        <Binding Source="{StaticResource myDataSource}" Path="PersonName"
                 diag:PresentationTraceSources.TraceLevel="High"/>
    </TextBox.Text>
</TextBox>
</Window>

備註

PresentationTraceLevel.NET Framework 3.5 版引進。 如需詳細資訊,請參閱版本和相依性

適用於

另請參閱