CanImport Method of the IFPCEE Interface
The CanImport method returns a Boolean value that indicates whether the object's properties can be imported from the specified XML document.
C++
Syntax
HRESULT CanImport(
[in] IUnknown* pDocument,
[in, optional] VARIANT_BOOL bValidateSchema,
[out] VARIANT_BOOL* pbRetVal
);
Parameters
pDocument
Pointer to the IUnknown interface on the DOMDocument object whose properties will be examined.bValidateSchema
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.pbRetVal
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.
Return Value
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Visual Basic
Syntax
Function CanImport( _
ByRef pDocument As IUnknown, _
[ ByVal bValidateSchema As Boolean ] _
) As Boolean
Parameters
pDocument
Reference to the DOMDocument30 object whose properties will be examined.bValidateSchema
Boolean value that indicates whether the schema will be validated. The default value is False, which indicates that the schema will not be validated.
Return Value
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.
Remarks
Any version of the XML DOM document object from Microsoft XML 4.0, XML 3.0, and XML 2.0 can be used.
This method is not supported in Forefront TMG Standard Edition or in any standalone deployment.
Requirements
Client | Requires Windows 7 or Windows Vista. |
Server | Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2. |
Version | Requires Forefront Threat Management Gateway (TMG) 2010. |
IDL | Declared in Msfpccom.idl. |
DLL | Requires Msfpccom.dll. |
See Also
Send comments about this topic to Microsoft
Build date: 6/30/2010