T
The entity type of the query.
Leadtools.Dicom.Common Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
DirectoryRecord<T> Method
See Also 
Leadtools.Dicom.Common.Linq.BasicDirectory Namespace > LinqExtensions Class : DirectoryRecord<T> Method



dataset
The dataset that holds information on a DICOM basic directory.
dataset
The dataset that holds information on a DICOM basic directory.
Represents a typed query against a DICOMDIR file.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Function DirectoryRecord(Of T)( _
   ByVal dataset As DicomDataSet _
) As Queryable(Of T)
Visual Basic (Usage)Copy Code
Dim dataset As DicomDataSet
Dim value As Queryable(Of T)
 
value = LinqExtensions.DirectoryRecord(Of T)(dataset)
C# 
[ExtensionAttribute()]
public static Queryable<T> DirectoryRecord<T>( 
   DicomDataSet dataset
)
C++/CLI 
[ExtensionAttribute()]
public:
static Queryable<T^>^ DirectoryRecordgeneric<typename T>
( 
   DicomDataSet^ dataset
) 

Parameters

dataset
The dataset that holds information on a DICOM basic directory.

Type Parameters

T
The entity type of the query.

Return Value

A object that provides LINQ based access to a DICOM basic directory.

Example

This example will show how to perform serveral different types of LINQ based queries on a DICOM basic directory.

Remarks

This extension method represents a query that returns a collection of zero or more objects of a specific type. A valid DICOMDIR must be present in the dataset parameter before a query can be executed. A DICOMDIR query will be executed in the following scenarios:

  • When it is acted upon, such as during a foreach(C#) or For Each (Visual Basic) enumeration.
  • When it is assigned to fill a List<T> collection.

The following operations are provided by the DICOMDIR LINQ Provider.

  • SelectMany
  • String Methods (Contains, StartWith, and EndsWith)
  • LINQ Projection
  • Subqueries

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.Common requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features