PresentationTraceSources.GetTraceLevel Method (Object)


Gets the value of the TraceLevel attached property for a specified element.

Namespace:   System.Diagnostics
Assembly:  WindowsBase (in WindowsBase.dll)

static member GetTraceLevel : 
        element:Object -> PresentationTraceLevel


Type: System.Object

The element from which the property value is read.

Return Value

Type: System.Diagnostics.PresentationTraceLevel

The TraceLevel property value for the element.

GetTraceLevel is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

.NET Framework
Available since 3.0
Return to top