DscService.GetFileSets Method

Gets a collection of DscFileSet objects for the file sets in the DSC that have names that start with the specified string.

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

Usage

'Usage
Dim instance As DscService
Dim dscFileSetPrefix As String
Dim returnValue As IEnumerable(Of DscFileSet)

returnValue = instance.GetFileSets(dscFileSetPrefix)

Syntax

'Declaration
Public Function GetFileSets ( _
    dscFileSetPrefix As String _
) As IEnumerable(Of DscFileSet)
public IEnumerable<DscFileSet> GetFileSets (
    string dscFileSetPrefix
)
public:
IEnumerable<DscFileSet^>^ GetFileSets (
    String^ dscFileSetPrefix
)
public IEnumerable<DscFileSet> GetFileSets (
    String dscFileSetPrefix
)
public function GetFileSets (
    dscFileSetPrefix : String
) : IEnumerable<DscFileSet>

Parameters

  • dscFileSetPrefix
    A String that specifies the start of the name of the file sets for which you want to get DscFileSet objects. For example, if the DSC contains file sets named FileSet1, FileSet2, and MyFileSet, the GetFileSets method gets a collection that contains DscFileSet objects for FileSet1 and FileSet2 if you specify File for the dscFileSetPrefix parameter.

    To get all of the file sets for the DSC service, specify an empty string.

Return Value

An IEnumerable collection of DscFileSet objects for the file sets in the DSC that have names that begin with the specified string.

Remarks

To get a DscFileSet object for a file set that has a name that exactly matches a specified string, use the GetFileSet method.

Platform Note: This method was introduced in Windows HPC Server 2008 R2 with Service Pack 2 (SP2) and is not supported in previous versions.

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

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows XP, Windows Vista, Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, with HPC Pack Client Utilities

See Also

Reference

DscService Class
DscService Members
Microsoft.Hpc.Dsc Namespace
IEnumerable
DscFileSet
GetFileSet
FileSetExists
CreateFileSet

Build Date:

2013-04-22