Share via


IFPCArrays2::CanImport method

Applies to: desktop apps only

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

Syntax

HRESULT CanImport(
  [in, ref]       IUnknown &pDocument,
  [in]            IUnknown *pDocument,
  [in, optional]  Boolean bValidateSchema,
  [in, optional]  VARIANT_BOOL bValidateSchema,
  [out]           VARIANT_BOOL *pbRetVal
);
FPCArrays.CanImport( _
  ByRef pDocument As IUnknown, _
  ByVal pDocument As IUnknown, _
  [ ByVal bValidateSchema As Boolean ], _
  [ ByVal bValidateSchema As VARIANT_BOOL ], _
  ByRef pbRetVal As VARIANT_BOOL _
) As Boolean

Parameters

  • pDocument [in]

    C++

    Pointer to the IUnknown interface on the DOMDocument object whose properties will be examined.

    VB

    Reference to the DOMDocument30 object whose properties will be examined.

  • bValidateSchema [in, optional]

    C++

    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.

    VB

    Boolean value that indicates whether the schema will be validated. The default value is False, which indicates that the schema will not be validated.

  • 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 value

C++

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

VB

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCArrays

 

 

Build date: 7/12/2010