PresentationTraceLevel 枚举

定义

说明对特定对象进行跟踪的详细等级。Describes the level of detail to trace about a particular object.

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

字段

High 3

跟踪所有附加信息。Traces all additional information.

Low 1

跟踪一些附加信息。Traces some additional information.

Medium 2

跟踪中等数量的附加信息。Traces a medium amount of additional information.

None 0

不跟踪可用的附加信息。Traces no available additional information.

示例

如果在调试器下运行包含以下XAMLXAML内容的应用程序, 则 "输出" 窗口将提供描述绑定状态和评估的信息行:If you run the application that contains the following XAMLXAML under a debugger, the output window provides lines of information describing the status and evaluation of the binding:

<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 中引入。PresentationTraceLevel is introduced in the .NET Framework version 3.5. 有关详细信息,请参见版本和依赖关系For more information, see Versions and Dependencies.

适用于

另请参阅