DicomObjects.NET10 Documentation
DicomObjects.DicomWeb.WebClient Namespace / NPIWebClient Class / StoreAsync Method / StoreAsync(DicomDataSet,DicomDataEncoding,String,String,CancellationToken) Method
DicomDataSet object representing the NPI
The encoding to use (native/json/xml)
The transfer syntax to use to send the instance
UID of the NPI
A token that may be used to cancel the operation



In This Topic
    StoreAsync(DicomDataSet,DicomDataEncoding,String,String,CancellationToken) Method
    In This Topic
    Store a colleciton of NPIs to origin server
    Syntax
    'Declaration
     
    
    <AsyncStateMachineAttribute(DicomObjects.DicomWeb.WebClient.NPIWebClient/d__38)> 
    Public Overloads Function StoreAsync( _ 
       ByVal NPI As DicomDataSet, _ 
       ByVal Encoding As DicomDataEncoding, _ 
       ByVal TransferSyntax As String, _ 
       Optional ByVal UID As String, _ 
       Optional ByVal cancellationToken As CancellationToken _ 
    ) As Task
    'Usage
     
    
    Dim instance As NPIWebClient
    Dim NPI As DicomDataSet
    Dim Encoding As DicomDataEncoding
    Dim TransferSyntax As String
    Dim UID As String
    Dim cancellationToken As CancellationToken
    Dim value As Task
     
    value = instance.StoreAsync(NPI, Encoding, TransferSyntax, UID, cancellationToken)
    [AsyncStateMachine(DicomObjects.DicomWeb.WebClient.NPIWebClient/d__38)] 
    public Task StoreAsync( 
       DicomDataSet NPI, 
       DicomDataEncoding Encoding, 
       string TransferSyntax, 
       string UID, 
       CancellationToken cancellationToken 
    )
    [AsyncStateMachine(DicomObjects.DicomWeb.WebClient.NPIWebClient/d__38)] 
    public: 
    Task^ StoreAsync( 
       DicomDataSet^ NPI, 
       DicomDataEncoding Encoding, 
       String^ TransferSyntax, 
       String^ UID, 
       CancellationToken cancellationToken 
    ) 

    Parameters

    NPI
    DicomDataSet object representing the NPI
    Encoding
    The encoding to use (native/json/xml)
    TransferSyntax
    The transfer syntax to use to send the instance
    UID
    UID of the NPI
    cancellationToken
    A token that may be used to cancel the operation
    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