DicomObjects.NET10 Documentation
DicomObjects.DicomWeb Namespace / WadoEventArgs Class / ReturnData Method / ReturnData(IAsyncEnumerable<WadoStreamSource>) Method
An asynchronous sequence of DicomObjects.DicomWeb.Internal.WadoStreamSource objects describing the DICOM instances to return and providing a callback for opening each object's data stream.



In This Topic
    ReturnData(IAsyncEnumerable<WadoStreamSource>) Method
    In This Topic
    Returns DICOM objects using streaming mode, with each object's stream opened only when that multipart response part is ready to be written.
    Syntax
    'Declaration
     
    
    Public Overloads Sub ReturnData( _
       ByVal parts As IAsyncEnumerable(Of WadoStreamSource) _
    ) 
    'Usage
     
    
    Dim instance As WadoEventArgs
    Dim parts As IAsyncEnumerable(Of WadoStreamSource)
     
    instance.ReturnData(parts)
    public void ReturnData( 
       IAsyncEnumerable<WadoStreamSource> parts
    )
    public:
    void ReturnData( 
       IAsyncEnumerable<WadoStreamSource^>^ parts
    ) 

    Parameters

    parts
    An asynchronous sequence of DicomObjects.DicomWeb.Internal.WadoStreamSource objects describing the DICOM instances to return and providing a callback for opening each object's data stream.
    Remarks
    This avoids loading the returned objects into DicomObjects.DicomDataSet instances. Each source stream is opened on demand, streamed directly to the WADO-RS response, and disposed before the next object is processed.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also