Leadtools.Dicom Namespace > DicomPrintScu Class > Associate Method : Associate(String,Int32,String,Int32,String,String,DicomPrintScuPrintManagementClassFlags) Method |
public bool Associate( string printScuIP, int printScuPort, string printScpIP, int printScpPort, string calledTitle, string callingTitle, DicomPrintScuPrintManagementClassFlags supportedClasses )
'Declaration Public Overloads Function Associate( _ ByVal printScuIP As String, _ ByVal printScuPort As Integer, _ ByVal printScpIP As String, _ ByVal printScpPort As Integer, _ ByVal calledTitle As String, _ ByVal callingTitle As String, _ ByVal supportedClasses As DicomPrintScuPrintManagementClassFlags _ ) As Boolean
'Usage Dim instance As DicomPrintScu Dim printScuIP As String Dim printScuPort As Integer Dim printScpIP As String Dim printScpPort As Integer Dim calledTitle As String Dim callingTitle As String Dim supportedClasses As DicomPrintScuPrintManagementClassFlags Dim value As Boolean value = instance.Associate(printScuIP, printScuPort, printScpIP, printScpPort, calledTitle, callingTitle, supportedClasses)
public bool Associate( string printScuIP, int printScuPort, string printScpIP, int printScpPort, string calledTitle, string callingTitle, DicomPrintScuPrintManagementClassFlags supportedClasses )
ObjectiveC Syntax
function Leadtools.Dicom.DicomPrintScu.Associate(String,Int32,String,Int32,String,String,DicomPrintScuPrintManagementClassFlags)( printScuIP , printScuPort , printScpIP , printScpPort , calledTitle , callingTitle , supportedClasses )
public: bool Associate( String^ printScuIP, int printScuPort, String^ printScpIP, int printScpPort, String^ calledTitle, String^ callingTitle, DicomPrintScuPrintManagementClassFlags supportedClasses )
This method will first try to connect to the Print SCP. If successful, it will then try to establish the Association. This method will not return until the Association is accepted/rejected by the Print SCP, or an error occurs.
The method GetAssociateRejectInformation can be used to get information about the Association rejection in case the Association request was rejected by the Print SCP.
The supportedClasses parameter specifies those SOP/Meta SOP Classes that are supported by the Print SCU itself. Once the Association is established, the method IsClassSupported 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 method Release. It can also be aborted using the method Abort.
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