CanImport Method of the IFPCArrays2 Interface

The CanImport method returns a Boolean value that indicates whether the collection'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.

Requirements

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.

See Also

FPCArrays


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.