DscService.CreateFileSet Method

Creates a new, empty file set in the Distributed Storage Catalog (DSC) with the specified name.

Namespace: Microsoft.Hpc.Dsc
Assembly: Microsoft.Hpc.Dsc (in Microsoft.Hpc.Dsc)

Usage

'Usage
Dim instance As DscService
Dim dscFileSetName As String
Dim returnValue As DscFileSet

returnValue = instance.CreateFileSet(dscFileSetName)

Syntax

'Declaration
Public Function CreateFileSet ( _
    dscFileSetName As String _
) As DscFileSet
public DscFileSet CreateFileSet (
    string dscFileSetName
)
public:
DscFileSet^ CreateFileSet (
    String^ dscFileSetName
)
public DscFileSet CreateFileSet (
    String dscFileSetName
)
public function CreateFileSet (
    dscFileSetName : String
) : DscFileSet

Parameters

  • dscFileSetName
    A String that specifies the name that you want to use for the new file set. The name of the file set must be 260 characters or less. You cannot specify the name of a file set that already exists in the DSC.

Return Value

A DscFileSet object that represents the new file set.

Remarks

To specify that the file set that you want to create should have a lease that ends on a specified date, use the CreateFileSet form of the method.

To add DSC files to the new file set, use the AddNewFile or AddExistingFile method.

You cannot read data from or run LINQ to HPC queries on the file set until you call the Seal method to indicate that all of the data was added the file set. After you call Seal for the file set, you cannot write additional data to the file set.

Platform Note: This method is supported only for Windows HPC Server 2008 R2 with Service Pack 2 (SP2).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Microsoft Windows HPC Server 2008, Windows HPC Server 2008 R2, Windows Server 2008 R2, Windows Server 2008, Windows 7, Windows Vista, Windows XP

Target Platforms

Windows Server 2003 R2 with HPC Pack 2008 R2 Client Utilities, Windows HPC Server 2008 R2, Windows Server 2008 R2 with HPC Pack 2008 R2 Client Utilities, Windows Vista with SP2 and HPC Pack 2008 R2 Client Utilities, Windows XP with SP2 (32-bit version) or SP3 (64-bit version) and HPC Pack 2008 R2 Client Utilities

See Also

Reference

DscService Class
DscService Members
Microsoft.Hpc.Dsc Namespace
CreateFileSet
AddNewFile
DscFileSet.AddExistingFile Method
DeleteFileSet
GetFileSet
GetFileSets
DscFileSet.Seal Method

Build Date: 2011-10-25