Share via


HpcLinqQueryable.ToDsc Method

Specifies the name of the file set to create and use when the LINQ to HPC query runs.

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

Usage

'Usage
Dim source As IQueryable(Of TSource)
Dim streamName As String
Dim returnValue As IQueryable(Of TSource)

returnValue = HpcLinqQueryable.ToDsc(source, streamName)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ToDsc(Of TSource) ( _
    source As IQueryable(Of TSource), _
    streamName As String _
) As IQueryable(Of TSource)
[ExtensionAttribute] 
public static IQueryable<TSource> ToDsc<TSource> (
    IQueryable<TSource> source,
    string streamName
)
[ExtensionAttribute] 
public:
generic<typename TSource>
static IQueryable<TSource>^ ToDsc (
    IQueryable<TSource>^ source, 
    String^ streamName
)
J# supports the use of generic APIs, but not the declaration of new ones.
JScript does not support generic types or methods.

GenericParameters

  • TSource
    The type of the records in the source parameter.

Parameters

  • source
    A System.Linq.IQueryable<TSource> interface for the LINQ to HPC query for which you want to specify a new file set.
  • streamName
    A String that specifies the name of the new DSC file set to use for the query.

Return Value

An IQueryable interface representing the output data.

Exceptions

Exception type Condition
ArgumentNullException

The specified source or streamName parameter is a null reference (Nothing in Visual Basic).

Remarks

To run a query that uses this method to specify a DSC file set, use the Submit method.

The file set that the ToDsc method creates has an infinite lease. Data from queries that do not include a call to the ToDsc method is temporary and has a limited lease.

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

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

HpcLinqQueryable Class
HpcLinqQueryable Members
Microsoft.Hpc.Linq Namespace
Submit
FromDsc

Build Date:

2013-04-22