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!

XmlContext.CreateHeader

Creates an XmlHeader instance in this context.

[Visual Basic]
Public Function CreateHeader( _
   ByVal version As String, _
   ByVal encoding As String, _
   ByVal standalone As String _
) As XmlHeader
[C#]
public XmlHeader CreateHeader(
   string version,
   string encoding,
   string standalone
);
[C++]
public: XmlHeader* CreateHeader(
   String* version,
   String* encoding,
   String* standalone
);
[JScript]
public function CreateHeader(
   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

An XmlHeader instance with the given properties.

Exceptions

Exception Type Condition
ArgumentException If version is null.

See Also

XmlContext Class | XmlContext Members | System.Xml Namespace