DicomObjects.NET10 Documentation
DicomObjects.DicomWeb Namespace / IWorkItemWebClient Interface / ChangeStateAsync Method
The encoding to use (native/json/xml)
A token that may be used to cancel the operation



In This Topic
    ChangeStateAsync Method (IWorkItemWebClient)
    In This Topic
    Transaction to change the state of a Workitem. It corresponds to the UPS DIMSE N-ACTION operation "Change UPS State". State changes are used to claim ownership, complete, or cancel a Workitem.
    Syntax
    'Declaration
     
    
    Function ChangeStateAsync( _
       ByVal State As UPSState, _
       ByVal TransactionUID As String, _
       Optional ByVal Encoding As DicomDataEncoding, _
       Optional ByVal cancellationToken As CancellationToken _
    ) As Task(Of HttpResponseMessage)
    'Usage
     
    
    Dim instance As IWorkItemWebClient
    Dim State As UPSState
    Dim TransactionUID As String
    Dim Encoding As DicomDataEncoding
    Dim cancellationToken As CancellationToken
    Dim value As Task(Of HttpResponseMessage)
     
    value = instance.ChangeStateAsync(State, TransactionUID, Encoding, cancellationToken)

    Parameters

    State
    TransactionUID
    Encoding
    The encoding to use (native/json/xml)
    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