NamespaceDeclaration(String, String) Constructor

Definition

Initializes a new instance of the NamespaceDeclaration class using initial property values.

public:
 NamespaceDeclaration(System::String ^ ns, System::String ^ prefix);
public NamespaceDeclaration (string ns, string prefix);
new System.Xaml.NamespaceDeclaration : string * string -> System.Xaml.NamespaceDeclaration
Public Sub New (ns As String, prefix As String)

Parameters

ns
String

The XAML namespace identifier, as a string.

prefix
String

The string prefix that is used for the namespace in prefix mappings.

Remarks

Initialization of NamespaceDeclaration does not attempt to validate values. To correctly use a XAML writer, do not use null values. A namespace declaration may have a String.Empty value for the prefix. A String.Empty prefix represents a declaration of the default XAML namespace.

Applies to