XmlDictionaryWriter.WriteXmlAttribute 方法

定义

在当前元素中写入标准的 XML 属性。

重载

WriteXmlAttribute(String, String)

在当前节点中写入标准的 XML 属性。

WriteXmlAttribute(XmlDictionaryString, XmlDictionaryString)

在当前节点中写入 XML 属性。

注解

标准 XML 属性是指具有前缀“xml”(任意大小写)的属性。 例如,xml:spacexml:lang

WriteXmlAttribute(String, String)

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

在当前节点中写入标准的 XML 属性。

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)

参数

localName
String

属性的本地名称。

value
String

属性的值。

适用于

WriteXmlAttribute(XmlDictionaryString, XmlDictionaryString)

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

在当前节点中写入 XML 属性。

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)

参数

localName
XmlDictionaryString

属性的本地名称。

value
XmlDictionaryString

属性的值。

适用于