XmlnsPrefixAttribute Constructor
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the XmlnsPrefixAttribute class.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- xmlNamespace
- Type: System.String
The identifier of the relevant XML namespace (use a string, not a true Uri type).
- prefix
- Type: System.String
The recommended prefix to use when mapping the XML namespace.
| Exception | Condition |
|---|---|
| ArgumentNullException | xmlNamespace or prefix are null. |
Show: