NamespaceDeclaration(String, String) Constructor
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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om