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
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про