DVTk API
SendAssociation Method (dicomMessages, presentationContexts)
DVTkDvtkHighLevelInterface.Dicom.ThreadsDicomThreadSendAssociation(DicomMessageCollection, array<PresentationContext>[]()[])
DVTk API

[This is preliminary documentation and is subject to change.]

Sends a Dicom Messages while taking care of setting up and releasing an association for it.
Declaration Syntax
C#Visual BasicVisual C++
protected bool SendAssociation(
	DicomMessageCollection dicomMessages,
	params PresentationContext[] presentationContexts
)
Protected Function SendAssociation ( _
	dicomMessages As DicomMessageCollection, _
	ParamArray presentationContexts As PresentationContext() _
) As Boolean
protected:
bool SendAssociation(
	DicomMessageCollection^ dicomMessages, 
	... array<PresentationContext^>^ presentationContexts
)
Parameters
dicomMessages (DicomMessageCollection)
The Dicom Messages to send.
presentationContexts (array< PresentationContext >[]()[])
The presentation contexts to propose in the A-ASSOCIATE-RQ.
Return Value
True indicates the other side has accepted the association, false indicates the other side has rejected the association.
Remarks
1. An A-ASSOCIATE-RQ is sent.
2. An A-ASSOCIATE-AC or A-ASSOCIATE-RJ is received.
Only when an A-ASSOCIATE-AC is received, steps 3, 4 and 5 are executed.
3. For each Dicom Message to send, it is sent and responses are received until the status is not pending anymore.
4. An A-RELEASE-RQ is sent.
5. An A-RELEASE-RP is received.
Exceptions
ExceptionCondition
Exception Sending or receiving of one of the Dul or Dicom messages fails or the flow of messages differs from the flow described.

Assembly: DvtkHighLevelInterface (Module: DvtkHighLevelInterface) Version: 0.0.0.0