DicomObjects.NET10 Documentation
DicomObjects.DicomWeb Namespace / WorkItemWebClient Class / UnsubscribeAsync Method
The Subscribe Target Resource
The AETitle of Subscriber
The Workitem UID for matching, required if Resource is Workitem
A token that may be used to cancel the operation



In This Topic
    UnsubscribeAsync Method
    In This Topic
    This asynchnorous transaction is used to stop the origin server from sending new Event Reports to the user agent and may also stop the origin server from subscribing the user agent to new Workitems.
    Syntax
    'Declaration
     
    
    <AsyncStateMachineAttribute(DicomObjects.DicomWeb.WorkItemWebClient/d__38)> 
    Public Function UnsubscribeAsync( _ 
       ByVal Resource As SubscribeTargetResource, _ 
       ByVal AETitle As String, _ 
       ByVal WorkItemUID As String, _ 
       Optional ByVal cancellationToken As CancellationToken _ 
    ) As Task(Of HttpResponseMessage)
    'Usage
     
    
    Dim instance As WorkItemWebClient
    Dim Resource As SubscribeTargetResource
    Dim AETitle As String
    Dim WorkItemUID As String
    Dim cancellationToken As CancellationToken
    Dim value As Task(Of HttpResponseMessage)
     
    value = instance.UnsubscribeAsync(Resource, AETitle, WorkItemUID, cancellationToken)

    Parameters

    Resource
    The Subscribe Target Resource
    AETitle
    The AETitle of Subscriber
    WorkItemUID
    The Workitem UID for matching, required if Resource is Workitem
    cancellationToken
    A token that may be used to cancel the operation

    Return Value

    HttpResponse message of the operation as returned by web server
    Remarks
    The async operation will return as soon as the response is available and headers are read (content is not read yet)
    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