ImportFacility2 method

Imports a facility. This method is an enhanced version of the ImportFacility method.

Syntax


C++
HRESULT ImportFacility2(
   BSTR URLName,
   BSTR DisplayName,
   BSTR ExportFile,
   IERUSiteServer* RoomServer,
   IERUSiteServer* DBServer,
   IERUSiteServer* FileServer,
   IERUSiteServer* IndexServer,
   VARIANT* pMembers,
   LONG CreateOptions,
   IERUSiteFacility** ppSiteFacility)
Scripting languages
Set SiteFacility = Community.ImportFacility2(
   URLName as String,
   DisplayName as String,
   ExportFile as String,
   RoomServer as IERUSiteServer,
   DBServer as IERUSiteServer,
   FileServer as IERUSiteServer,
   IndexServer as IERUSiteServer,
   CreateOptions as Long)

Parameters


URLName

The URL name for the imported facility.

DisplayName

The display name for the imported facility.

ExportFile

Name of the export file to be imported.

RoomServer

The room server for the imported facility, as an IERUSiteServer.

DBServer

The database server that will store the imported facility, as an IERUSiteServer.

FileServer

The file server that is used to store files for the imported facility, as an IERUSiteServer.

IndexServer

The full-text index server used for the imported facility, as an IERUSiteServer.

pMembers

Upon return, a Variant containing conflicting members.

CreateOptions

One or more values taken from the ERUImportFlag enum.

ppFacility

Upon return, an IERUFacility interface pointer to the imported Facility.

Return value


C++

The return code.

Scripting languages

Upon return, a Variant containing conflicting members and an IERUFacility interface pointer to the imported Facility.

Home

Applies to

IERUCommunity