LEADTOOLS Medical (Leadtools.Dicom assembly)

SaveAsync(ILeadStream,DicomDataSetSaveFlags) Method

Show in webframe







Output stream that will contain the saved data set.
Meta-header flags, Transfer Syntax flags, and other flags that indicate the file characteristics to use when saving the file.
Saves the Data Set to a stream.
Syntax
public IAsyncOperation<bool> SaveAsync( 
   ILeadStream stream,
   DicomDataSetSaveFlags flags
)
'Declaration
 
Public Overloads Function SaveAsync( _
   ByVal stream As ILeadStream, _
   ByVal flags As DicomDataSetSaveFlags _
) As IAsyncOperation(Of Boolean)
'Usage
 
Dim instance As DicomDataSet
Dim stream As ILeadStream
Dim flags As DicomDataSetSaveFlags
Dim value As IAsyncOperation(Of Boolean)
 
value = instance.SaveAsync(stream, flags)
public IAsyncOperation<bool> SaveAsync( 
   ILeadStream stream,
   DicomDataSetSaveFlags flags
)

            

            
 function Leadtools.Dicom.DicomDataSet.SaveAsync(ILeadStream,DicomDataSetSaveFlags)( 
   stream ,
   flags 
)
public:
IAsyncOperation<bool>^ SaveAsync( 
   ILeadStream^ stream,
   DicomDataSetSaveFlags flags
) 

Parameters

stream
Output stream that will contain the saved data set.
flags
Meta-header flags, Transfer Syntax flags, and other flags that indicate the file characteristics to use when saving the file.

Return Value

When this method completes, it returns the true if the dataset was saved, false otherwise.
Remarks
If the Data Set was loaded from a file, the file characteristics were included when the file was loaded. If you wish to use these same characteristics, save the Data Set with flags set to DicomDataSetSaveFlags.None.

If you wish to specify the file characteristics for saving the data set, set the characteristics using the possible values for flags.

Example
For an example, refer to DicomDataSet.Load(Stream, DicomDataSetLoadFlags).
Requirements

Target Platforms

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
DicomDataSet.Load(string, DicomDataSetLoadFlags)

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

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