Partager via


FsrmExportImportClass.ExportFileGroups Method (String, Object, String)

 

Exports one or more file groups to the specified file.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

public virtual void ExportFileGroups(
    string filePath,
    [InAttribute] ref object fileGroupNamesSafeArray = "",
    string remoteHost = ""
)
public:
virtual void ExportFileGroups(
    String^ filePath,
    [InAttribute] Object^% fileGroupNamesSafeArray = "",
    String^ remoteHost = ""
)
abstract ExportFileGroups : 
        filePath:string *
        fileGroupNamesSafeArray:Object byref = "" *
        remoteHost:string = "" -> unit
override ExportFileGroups : 
        filePath:string *
        fileGroupNamesSafeArray:Object byref = "" *
        remoteHost:string = "" -> unit
Public Overridable Sub ExportFileGroups (
    filePath As String,
    <InAttribute> ByRef fileGroupNamesSafeArray As Object,
    remoteHost As String
)

Parameters

  • filePath
    Type: System.String

    The full path to the export file that will contain the file groups in XML format. The string is limited to 260 characters.

  • fileGroupNamesSafeArray
    Type: System.Object

    The names of the file groups to export. Set the variant to empty or NULL to export all file groups. Set the variant type to both VT_ARRAY and VT_VARIANT and the parray member to the SAFEARRAY of BSTRs.

  • remoteHost
    Type: System.String

    The name of the remote server. To specify the local server, set to an empty string.

Implements

IFsrmExportImport.ExportFileGroups(String, Object, String)

Remarks

The file group name is specified when you call the CreateFileGroup method. To enumerate the file groups, call the EnumFileGroups method.

You can also use the ExportFileGroups method to export the templates.

See Also

FsrmExportImport
IFsrmExportImport
FsrmExportImportClass Class
Microsoft.Storage Namespace

Return to top