VisualDiagnostics.GetXamlSourceInfo(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET