XamlObjectReader.Namespace Property

Definition

Gets the XAML namespace declaration from the current reader position.

C#
public override System.Xaml.NamespaceDeclaration Namespace { get; }

Property Value

The XAML namespace declaration if the reader is positioned on a NamespaceDeclaration; otherwise, null.

Remarks

This property returns a non-null result only if the NodeType property of the current reader position is NamespaceDeclaration. It does not infer a namespace that is based on the context of other node types, such as an object in that namespace.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10