PresentationTraceSources.GetTraceLevel Method (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

Public Shared Function GetTraceLevel (
	element As Object
) As PresentationTraceLevel

Parameters

element
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
Show: