XmlDictionaryWriter.WriteStartAttribute Method

Definition

When overridden in a derived class, writes the start of an attribute.

Overloads

WriteStartAttribute(XmlDictionaryString, XmlDictionaryString)

Writes the start of an attribute with the specified local name, and namespace URI.

WriteStartAttribute(String, XmlDictionaryString, XmlDictionaryString)

Writes the start of an attribute with the specified prefix, local name, and namespace URI.

WriteStartAttribute(XmlDictionaryString, XmlDictionaryString)

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

Writes the start of an attribute with the specified local name, and namespace URI.

public void WriteStartAttribute (System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri);
public void WriteStartAttribute (System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString? namespaceUri);

Parameters

localName
XmlDictionaryString

The local name of the attribute.

namespaceUri
XmlDictionaryString

The namespace URI of the attribute.

Applies to

.NET 9 e altre versioni
Prodotto Versioni
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.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
.NET Standard 2.0, 2.1
UWP 10.0

WriteStartAttribute(String, XmlDictionaryString, XmlDictionaryString)

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

Writes the start of an attribute with the specified prefix, local name, and namespace URI.

public virtual void WriteStartAttribute (string prefix, System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri);
public virtual void WriteStartAttribute (string? prefix, System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString? namespaceUri);

Parameters

prefix
String

The namespace prefix.

localName
XmlDictionaryString

The local name of the attribute.

namespaceUri
XmlDictionaryString

The namespace URI of the attribute.

Applies to

.NET 9 e altre versioni
Prodotto Versioni
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.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
.NET Standard 2.0, 2.1
UWP 10.0