Associate method (ILEADDicomPrintSCU Interface)
short Associate(BSTR pszPrintScpIP, long lPrintScpPort, BSTR pszCalledTitle, BSTR pszCallingTitle, DicomClassEnum SupportedClasses); | |
Overview |
Refer to Print Management SCU. |
Remarks
The Associate method connects to the Print SCP and then establishes the DICOM Association.
The Association must be established successfully before any of the print management operations can succeed.
The method will first try to connect to the Print SCP. If successful, it will then try to establish the Association. The method will not return until the Association is accpeted/rejected by the Print SCP or an error occurs.
The AssociateRejectResult property, AssociateRejectSource property, and AssociateRejectReason property provide information about the Association rejection in case the Association request was rejected by the Print SCP.
The parameter SupportedClasses specifies those SOP/Meta SOP Classes that are supported by the Print SCU itself. Once the Association is established, the IsClassSupported method can be used to test whether a particular SOP/Meta SOP Class is supported on the Association (and hence by the Print SCP).
The established Association can be released using the ReleaseAssociation method or aborted using the AbortAssociation method.
See Also