NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlWriter.WriteAttribute (String, String, String)

Writes out the attribute with the specified name, value, and namespace.

[Visual Basic]
Overloads Public Sub WriteAttribute( _
   ByVal name As String, _
   ByVal ns As String, _
   ByVal value As String _
)
[C#]
public void WriteAttribute(
   string name,
   string ns,
   string value
);
[C++]
public: void WriteAttribute(
   String* name,
   String* ns,
   String* value
);
[JScript]
public function WriteAttribute(
   name : String,
   ns : String,
   value : String
);

Parameters

name
Name of the attribute.
ns
[To be supplied.]
value
[To be supplied.]

Exceptions

Exception Type Condition
InvalidOperationException Writer is not WriteState.Element or writer is closed.

Remarks

If the name is "xmlns" or starts with "xmlns:", this method also treats this as a namespace declaration and assocates the declared prefix with the given namespace.

See Also

XmlWriter Class | XmlWriter Members | System.NewXml Namespace | XmlWriter.WriteAttribute Overload List