Share via


IFsrmExportImport.ExportFileGroups Method (String, Object, String)

 

Exports one or more file groups to the specified file.

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

Syntax

void ExportFileGroups(
    string filePath,
    [InAttribute] ref object fileGroupNamesSafeArray = "",
    string remoteHost = ""
)
void ExportFileGroups(
    String^ filePath,
    [InAttribute] Object^% fileGroupNamesSafeArray = "",
    String^ remoteHost = ""
)
abstract ExportFileGroups : 
        filePath:string *
        fileGroupNamesSafeArray:Object byref = "" *
        remoteHost:string = "" -> unit
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

    A variant that contains 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.

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 Interface
Microsoft.Storage Namespace

Return to top