共用方式為


XmlTokenStream.AddAttribute(String, String, String, String) Method

Definition

Adds a XML attribute node to the collection

public void AddAttribute (string prefix, string localName, string namespace, string value);
member this.AddAttribute : string * string * string * string -> unit
Public Sub AddAttribute (prefix As String, localName As String, namespace As String, value As String)

Parameters

prefix
String

the XML prefix.

localName
String

the local name of the attribute.

namespace
String

the namespace of the attribute.

value
String

the value of the attribute.

Exceptions

if localName is null or empty.

Applies to