FsrmExportImportClass.ImportQuotaTemplates Method (String, Object, String)
Imports one or more quota templates from the specified file.
Namespace: Microsoft.Storage
Assembly: srmlib (in srmlib.dll)
Syntax
public virtual IFsrmCommittableCollection ImportQuotaTemplates(
string filePath,
[InAttribute] ref object templateNamesSafeArray = "",
string remoteHost = ""
)
public:
virtual IFsrmCommittableCollection^ ImportQuotaTemplates(
String^ filePath,
[InAttribute] Object^% templateNamesSafeArray = "",
String^ remoteHost = ""
)
abstract ImportQuotaTemplates :
filePath:string *
templateNamesSafeArray:Object byref = "" *
remoteHost:string = "" -> IFsrmCommittableCollection
override ImportQuotaTemplates :
filePath:string *
templateNamesSafeArray:Object byref = "" *
remoteHost:string = "" -> IFsrmCommittableCollection
Public Overridable Function ImportQuotaTemplates (
filePath As String,
<InAttribute> ByRef templateNamesSafeArray As Object,
remoteHost As String
) As IFsrmCommittableCollection
Parameters
filePath
Type: System.StringThe full path to the file from which to import the quota templates. The string is limited to 260 characters.
templateNamesSafeArray
Type: System.ObjectA 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.
remoteHost
Type: System.StringThe name of the remote server. To specify the local server, set to an empty string.
Return Value
Type: Microsoft.Storage.IFsrmCommittableCollection
Returns a IFsrmCommittableCollection of IFsrmQuotaTemplateImported interfaces. To complete the import, you must call the IFsrmQuotaTemplateImported.Commit method.
Implements
IFsrmExportImport.ImportQuotaTemplates(String, Object, String)
Remarks
You can also use the ImportTemplates method to import the templates.
See Also
FsrmExportImport
IFsrmExportImport
FsrmExportImportClass Class
Microsoft.Storage Namespace
Return to top