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!

XmlDocument.AddHeader

Adds a new XML header node to the child list of this document.

[Visual Basic]
Public Function AddHeader( _
   ByVal version As String, _
   ByVal encoding As String, _
   ByVal standalone As String _
) As XmlHeader
[C#]
public XmlHeader AddHeader(
   string version,
   string encoding,
   string standalone
);
[C++]
public: XmlHeader* AddHeader(
   String* version,
   String* encoding,
   String* standalone
);
[JScript]
public function AddHeader(
   version : String,
   encoding : String,
   standalone : String
) : XmlHeader;

Parameters

version
The value of the version property of the header. For compliance with current XML specifications, this should be the string "1.0".
encoding
The value of the encoding property of the header, or null if the header has no encoding property.
standalone
The value of the standalone property of the header, or null if the header has no standalone property. For compliance with current XML specifications, the value of this parameter should be null, "yes", or "no".

Return Value

The newly created XML header node.

Exceptions

Exception Type Condition
ArgumentException If version is null.

See Also

XmlDocument Class | XmlDocument Members | System.Xml Namespace