The CanImport method returns a Boolean value that indicates whether the collection's properties can be imported from the specified XML document.
HRESULT CanImport( [in] IUnknown* pDocument, [in, optional] VARIANT_BOOL bValidateSchema, [out] VARIANT_BOOL* pbRetVal );
Pointer to the IUnknown interface on the DOMDocument object whose properties will be examined.
Boolean value that indicates whether the schema will be validated. The default value is VARIANT_FALSE, which indicates that the schema will not be validated.
Pointer to a Boolean variable that is set on return to VARIANT_TRUE if the object's properties can be imported from the XML document specified, or to VARIANT_FALSE if the object's properties cannot be imported.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Function CanImport( _ ByRef pDocument As IUnknown, _ [ ByVal bValidateSchema As Boolean ] _ ) As Boolean
Reference to the DOMDocument30 object whose properties will be examined.
Boolean value that indicates whether the schema will be validated. The default value is False, which indicates that the schema will not be validated.
Boolean value that is set to True if the object's properties can be imported from the XML document specified, or to False if the object's properties cannot be imported.
Any version of the XML DOM document object from Microsoft XML 4.0, XML 3.0, and XML 2.0 can be used.
Client | Requires Windows Vista or Windows XP. |
---|---|
Server | Requires Windows Server 2008. |
Version | Requires Forefront Threat Management Gateway (TMG). |
IDL |
Declared in Msfpccom.idl. |
DLL |
Requires Msfpccom.dll. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.