XmlnsPrefixAttribute(String, String) Constructor

Definition

Initializes a new instance of the XmlnsPrefixAttribute class, initializing XmlNamespace and Prefix.

C#
public XmlnsPrefixAttribute(string xmlNamespace, string prefix);

Parameters

xmlNamespace
String

A String that contains the value for XmlNamespace.

prefix
String

A String that contains the value for Prefix.

Exceptions

xmlNamespace is a null reference (Visual Basic Nothing).

-or-

prefix is a null reference (Visual Basic Nothing).

Applies to

Proizvod Verzije
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1