共用方式為


version Property

 

Specifies the version to include in XML declarations, for example, <?xml version="1.0">.

Visual Basic Implementation Syntax

Property Let IMXWriter_version(ByVal RHS As String)  
Property Get IMXWriter_version() As String  

Visual Basic Usage Syntax

oMXXMLWriter.version = strVersion  
strVersion = oMXXMLWriter.version  

C/C++ Syntax

 [propput]  
HRESULT version (  
   [in] BSTR strVersion);  
  
[propget]  
HRESULT version (  
   [out, retval] BSTR * strVersion);  

Parameters

strVersion
The BSTR of version.

Return Values

S_OK
The value returned if no errors are reported.

Remarks

Read/write. A string representing the version. The default value is "1.0". The XSLProcessor object does not implement setting of this property at run time.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

IMXWriter Interface

See Also

MXHTMLWriter CoClass
MXXMLWriter CoClass