共用方式為


PresentationTraceSources.SetTraceLevel(Object, PresentationTraceLevel) 方法

定義

TraceLevel 附加屬性的值設定為指定的元素。

public:
 static void SetTraceLevel(System::Object ^ element, System::Diagnostics::PresentationTraceLevel traceLevel);
public static void SetTraceLevel (object element, System.Diagnostics.PresentationTraceLevel traceLevel);
static member SetTraceLevel : obj * System.Diagnostics.PresentationTraceLevel -> unit
Public Shared Sub SetTraceLevel (element As Object, traceLevel As PresentationTraceLevel)

參數

element
Object

要寫入附加屬性的項目。

traceLevel
PresentationTraceLevel

所需要的 PresentationTraceLevel 值。

備註

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

適用於

另請參閱