Επεξεργασία

Κοινή χρήση μέσω


XmlDictionaryWriter.WriteXmlnsAttribute Method

Definition

Writes a namespace declaration attribute.

Overloads

WriteXmlnsAttribute(String, String)

Writes a namespace declaration attribute.

WriteXmlnsAttribute(String, XmlDictionaryString)

Writes a namespace declaration attribute.

WriteXmlnsAttribute(String, String)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

Writes a namespace declaration attribute.

public:
 virtual void WriteXmlnsAttribute(System::String ^ prefix, System::String ^ namespaceUri);
public virtual void WriteXmlnsAttribute (string prefix, string namespaceUri);
public virtual void WriteXmlnsAttribute (string? prefix, string namespaceUri);
abstract member WriteXmlnsAttribute : string * string -> unit
override this.WriteXmlnsAttribute : string * string -> unit
Public Overridable Sub WriteXmlnsAttribute (prefix As String, namespaceUri As String)

Parameters

prefix
String

The prefix that is bound to the given namespace.

namespaceUri
String

The namespace to which the prefix is bound.

Exceptions

namespaceUri is null.

Applies to

WriteXmlnsAttribute(String, XmlDictionaryString)

Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs
Source:
XmlDictionaryWriter.cs

Writes a namespace declaration attribute.

public:
 virtual void WriteXmlnsAttribute(System::String ^ prefix, System::Xml::XmlDictionaryString ^ namespaceUri);
public virtual void WriteXmlnsAttribute (string prefix, System.Xml.XmlDictionaryString namespaceUri);
public virtual void WriteXmlnsAttribute (string? prefix, System.Xml.XmlDictionaryString namespaceUri);
abstract member WriteXmlnsAttribute : string * System.Xml.XmlDictionaryString -> unit
override this.WriteXmlnsAttribute : string * System.Xml.XmlDictionaryString -> unit
Public Overridable Sub WriteXmlnsAttribute (prefix As String, namespaceUri As XmlDictionaryString)

Parameters

prefix
String

The prefix that is bound to the given namespace.

namespaceUri
XmlDictionaryString

The namespace to which the prefix is bound.

Exceptions

namespaceUri is null.

Applies to