DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomAssociation Class / Close Method
Example

In This Topic
    Close Method (DicomAssociation)
    In This Topic
    Closes the association represented by a "stand-alone" DicomAssociation
    Syntax
    'Declaration
     
    
    Public Sub Close() 
    public void Close()
    Remarks
    After a close method, a DicomAssociation object may be re-used, using Open to establish a new association. The isOpen property is set to false after this method.
    Example
    using DicomObjects;
    using DicomObjects.DicomUIDs;
                	    
       using (var cn = new DicomAssociation()) {       
           cn.RequestedContexts.Add(SOPClasses.Verification);
           cn.Open("localhost", 104, "callingAET", "calledAET");        
           cn.Echo();
           cn.Close();
       }
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also