編集

次の方法で共有


XmlDictionaryWriter.WriteXmlAttribute Method

Definition

Writes a standard XML attribute in the current element.

Overloads

WriteXmlAttribute(String, String)

Writes a standard XML attribute in the current node.

WriteXmlAttribute(XmlDictionaryString, XmlDictionaryString)

Writes an XML attribute in the current node.

Remarks

A standard XML attribute is one with the prefix "xml" in any casing. Examples are xml:space and xml:lang.

WriteXmlAttribute(String, String)

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

Writes a standard XML attribute in the current node.

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

Parameters

localName
String

The local name of the attribute.

value
String

The value of the attribute.

Applies to

WriteXmlAttribute(XmlDictionaryString, XmlDictionaryString)

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

Writes an XML attribute in the current node.

public:
 virtual void WriteXmlAttribute(System::Xml::XmlDictionaryString ^ localName, System::Xml::XmlDictionaryString ^ value);
public virtual void WriteXmlAttribute (System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString value);
public virtual void WriteXmlAttribute (System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString? value);
abstract member WriteXmlAttribute : System.Xml.XmlDictionaryString * System.Xml.XmlDictionaryString -> unit
override this.WriteXmlAttribute : System.Xml.XmlDictionaryString * System.Xml.XmlDictionaryString -> unit
Public Overridable Sub WriteXmlAttribute (localName As XmlDictionaryString, value As XmlDictionaryString)

Parameters

localName
XmlDictionaryString

The local name of the attribute.

value
XmlDictionaryString

The value of the attribute.

Applies to