[This is preliminary documentation and is subject to change.]
Sends an A-ASSOCIATE-AC based on the previously received A-ASSOCIATE-RQ.
| C# | Visual Basic | Visual C++ |
protected AssociateAc SendAssociateAc( params TransferSyntaxes[] transferSyntaxesList )
Protected Function SendAssociateAc ( _ ParamArray transferSyntaxesList As TransferSyntaxes() _ ) As AssociateAc
protected: AssociateAc^ SendAssociateAc( ... array<TransferSyntaxes^>^ transferSyntaxesList )
- transferSyntaxesList (array< TransferSyntaxes >[]()[])
- The transfer syntaxes to accept.
The sent AssociateAc.
The following holds for the presentation contexts in the sent A-ASSOCIATE-AC:
- For each requested presentation contex, do the following:
1)
Check if one or more of the requested transfer syntaxes is present in the first supplied TransferSyntaxes instance. If this is the case, use the requested transfer syntax that is requested before the other ones in the accepted presentation context counterpart (has result field 0).
2)
If no requested transfer syntaxes was present, try this with the second supplied TransferSyntaxes instance.
3) If no requested transfer syntaxes was present is in any supplied TransferSyntaxes instance, reject the presentation context with result 4.
Note that a difference exists between supplying one TransferSyntaxes instance with all transfer syntaxes to accept and supplying multiple TransferSyntaxes instances each containing only one transfer syntax. In the first case, the preference (order of proposed transfer syntaxes) of the SCU will be used, in the second case the preference of the caller of this method will be used.
If an A-ASSOCIATE-RJ should be sent when none of the requested presentation contexts is accepted, use the SendAssociateRp(array<TransferSyntaxes>[]()[]) method instead.
- For each requested presentation contex, do the following:
1)
Check if one or more of the requested transfer syntaxes is present in the first supplied TransferSyntaxes instance. If this is the case, use the requested transfer syntax that is requested before the other ones in the accepted presentation context counterpart (has result field 0).
2)
If no requested transfer syntaxes was present, try this with the second supplied TransferSyntaxes instance.
3) If no requested transfer syntaxes was present is in any supplied TransferSyntaxes instance, reject the presentation context with result 4.
Note that a difference exists between supplying one TransferSyntaxes instance with all transfer syntaxes to accept and supplying multiple TransferSyntaxes instances each containing only one transfer syntax. In the first case, the preference (order of proposed transfer syntaxes) of the SCU will be used, in the second case the preference of the caller of this method will be used.
If an A-ASSOCIATE-RJ should be sent when none of the requested presentation contexts is accepted, use the SendAssociateRp(array<TransferSyntaxes>[]()[]) method instead.
| Exception | Condition |
|---|---|
| Exception |
Last received message is not an A-ASSOCIATE-RQ or no message has been received at all.
|