Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IFPCPersist::CanImport method

Applies to: desktop apps only

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

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

FPCPersist

 

 

Build date: 7/12/2010

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.