IFsrmFileScreenTemplateManager::ImportTemplates method

Imports the specified file screen templates from an XML string.

Syntax


HRESULT ImportTemplates(
  [in]   BSTR serializedFileScreenTemplates,
  [in]   VARIANT *fileScreenTemplateNamesArray,
  [out]  IFsrmCommittableCollection **fileScreenTemplates
);

Parameters

serializedFileScreenTemplates [in]

An XML string that represents one or more file screen templates.

fileScreenTemplateNamesArray [in]

A VARIANT that contains a SAFEARRAY of the names of the templates to import. If NULL, the method imports all templates.

fileScreenTemplates [out]

An IFsrmCommittableCollection interface that contains a collection of file screen templates.

Each item of the collection is a VARIANT of type VT_DISPATCH. Query the pdispVal member of the variant for the IFsrmFileScreenTemplateImported interface.

To add the templates to FSRM, call the IFsrmCommittableCollection::Commit method. To add the templates to FSRM and propagate the changes to objects that were derived from the template, call the IFsrmFileScreenTemplateImported::CommitAndUpdateDerived method on each item in the collection.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

The fileScreenTemplateNames or fileScreenTemplates parameter is NULL or the serializedFileScreenTemplate does not contain a variant array of BSTRs.

FSRM_E_INVALID_IMPORT_VERSION

The version of the XML used is not consistent with the schema defined for FSRM in Windows Server 2008.

FSRM_E_NOT_FOUND

The requested template is not in the serialized list of quotas.

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmScreen.h

DLL

SrmSvc.dll

CLSID

CLSID_FsrmFileScreenTemplateManager is defined as 243111df-e474-46aa-a054-eaa33edc292a

IID

IID_IFsrmFileScreenTemplateManager is defined as cfe36cba-1949-4e74-a14f-f1d580ceaf13

See also

IFsrmFileScreenTemplateManager
FsrmFileScreenTemplateManager

 

 

Show:
© 2014 Microsoft