XamlObjectWriter.WriteNamespace Method (NamespaceDeclaration)
Defines a namespace declaration that applies to the next object scope or member scope.
Assembly: System.Xaml (in System.Xaml.dll)
A namespace declaration can be written if the current scope is a root scope, object scope, or member scope. However, WriteStartObject, or WriteStartMember. The consecutive case is for writing multiple namespace declarations to the same node. Eventually, either WriteStartObject or WriteStartMember must be called.can only be called immediately before a call to one of the following: ,
A namespace declaration may have a String.Empty value for the prefix. A String.Empty prefix represents a declaration of the default XAML namespace. Do not attempt to use null to represent the default prefix; it throws an exception in this API. For more information, see NamespaceDeclaration.
Available since 4.0