Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Imports one or more quota templates from the specified file.
Syntax
HRESULT ImportQuotaTemplates(
[in] BSTR filePath,
[in] VARIANT *templateNamesSafeArray,
[in] BSTR remoteHost,
[out] IFsrmCommittableCollection **templates
);
Parameters
[in] filePath
The full path to the file from which to import the quota templates. The string is limited to 260 characters.
[in] templateNamesSafeArray
A variant that contains the names of the quota templates to import. Set the variant to empty or NULL to import all templates.
Set the variant type to both VT_ARRAY and VT_VARIANT and the parray member to the SAFEARRAY of BSTRs.
[in] remoteHost
The name of the remote server. To specify the local server, set to an empty string.
[out] templates
An IFsrmCommittableCollection interface that contains a collection of IFsrmQuotaTemplateImported interfaces. To complete the import, you must call the IFsrmQuotaTemplateImported::Commit method.
Return value
The method returns the following return values.
Remarks
You can also use the IFsrmQuotaTemplateManager::ImportTemplates method to import the templates.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | fsrm.h (include FsrmPipeline.h, FsrmQuota.h, FsrmReports.h, FsrmScreen.h, FsrmTlb.h) |
DLL | SrmSvc.dll |