VisualDiagnostics.RegisterSourceInfo(Object, Uri, Int32, Int32) 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.
Registers source file information (URI, line number, and position) for the specified target object when XAML diagnostics are enabled.
public:
static void RegisterSourceInfo(System::Object ^ target, Uri ^ uri, int lineNumber, int linePosition);
public static void RegisterSourceInfo(object target, Uri uri, int lineNumber, int linePosition);
static member RegisterSourceInfo : obj * Uri * int * int -> unit
Public Shared Sub RegisterSourceInfo (target As Object, uri As Uri, lineNumber As Integer, linePosition As Integer)
Parameters
- target
- Object
The object to associate with source information.
- uri
- Uri
The URI of the XAML file where the object was defined.
- lineNumber
- Int32
The line number in the XAML file.
- linePosition
- Int32
The position within the line in the XAML file.