This documentation is archived and is not being maintained.

XamlParseException.NameContext Property

Gets or sets the XAML name of the object where the exception occurred.

Namespace:  System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)

public string NameContext { get; internal set; }
Members of this class are either not typically used in XAML, or cannot be used in XAML.

Property Value

Type: System.String
The XAML name.

If NameContext is set, the XAML exception occurred in the context of an object that has a XAML name, and NameContext is the value of that name.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0