Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCPersist::CanImport[C++]

FPCPersist.CanImport [Visual Basic]

[C++]

The CanImport method returns a Boolean value that indicates whether the object's properties can be imported from the specified XML document.

HRESULT CanImport(
  IUnknown* pDocument,
  VARIANT_BOOL bValidateSchema,
  VARIANT_BOOL* pbRetVal
);

Parameters

pDocument
[in] Pointer to the IUnknown interface on the DOMDocument object whose properties will be examined.
bValidateSchema
[in, optional] Boolean value that indicates whether the schema should be validated. The default value is VARIANT_FALSE.
pbRetVal
[out] 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 Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

Any version of the XML DOM document object from Microsoft XML 2.0 and later can be used.

[Visual Basic]

The CanImport method returns a Boolean value that indicates whether the object's properties can be imported from the specified XML document.

Function CanImport( _
  ByRef pDocument As IUnknown, _
  [ ByVal bValidateSchema As Boolean ] _
) As Boolean

Parameters

pDocument
[in] Reference to the DOMDocument30 object whose properties will be examined.
bValidateSchema
[in, optional] Boolean value that indicates whether the schema should be validated. The default value is False.

Return Values

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 2.0 and later can be used.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCPersist