Bearbeiten

Freigeben über


VisualDiagnostics.GetXamlSourceInfo(Object) Method

Definition

Returns an instance of XamlSourceInfo that contains information about the XAML source document for the specified object.

public:
 static System::Windows::Diagnostics::XamlSourceInfo ^ GetXamlSourceInfo(System::Object ^ obj);
public static System.Windows.Diagnostics.XamlSourceInfo GetXamlSourceInfo (object obj);
static member GetXamlSourceInfo : obj -> System.Windows.Diagnostics.XamlSourceInfo
Public Shared Function GetXamlSourceInfo (obj As Object) As XamlSourceInfo

Parameters

obj
Object

The object for which to find the XAML source.

Returns

Information about the XAML source document if available; otherwise, null.

Remarks

Source info is available only for Debug assemblies and only if the ENABLE_XAML_DIAGNOSTICS_SOURCE_INFO environment variable is set to anything other than 0 or false.

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Applies to