Move Method

Summary
Moves the series.
Syntax
C#
C++/CLI
public void Move( 
   string DestAE 
) 
public: 
void Move(  
   String^ DestAE 
)  

Parameters

DestAE
The destination AE title.

Example

Finds a moves a study.

C#
using Leadtools; 
using Leadtools.Dicom.Scu; 
using Leadtools.Dicom.Scu.Common; 
using Leadtools.Dicom; 
using Leadtools.Dicom.Common.DataTypes; 
using Leadtools.Dicom.Common.DataTypes.Status; 
 
 
 
List<Study> Studies = new List<Study>(); 
List<Series> StudySeries = new List<Series>(); 
 
public void StudyRetrieve() 
{ 
   DicomEngine.Startup(); 
   DicomNet.Startup(); 
 
   QueryRetrieveScu studyRetrieve = new QueryRetrieveScu(); 
   FindQuery query = new FindQuery(); 
   DicomScp scp = new DicomScp(); 
 
   // 
   // Change these parameters to reflect the calling AETitle. 
   // 
 
   studyRetrieve.AETitle = "LEAD_CLIENT"; 
   studyRetrieve.HostPort = 1000; 
   studyRetrieve.HostAddress = Dns.GetHostEntry(Dns.GetHostName()).AddressList.FirstOrDefault(ip => ip.AddressFamily == AddressFamily.InterNetwork); 
 
   // 
   // Change these parameters to reflect the called AETitle (server). 
   // 
 
   scp.AETitle = "MI_SERVER"; 
   scp.Port = 104; 
   scp.Timeout = 60; 
   scp.PeerAddress = IPAddress.Parse("10.1.1.96"); 
 
   // 
   // Find all studies 
   // 
 
   query.QueryLevel = QueryLevel.Study; 
   studyRetrieve.MatchStudy += new MatchStudyDelegate(studyRetrieve_MatchStudy); 
   studyRetrieve.MatchSeries += new MatchSeriesDelegate(studyRetrieve_MatchSeries); 
   studyRetrieve.Find(scp, query); 
 
   if (Studies.Count > 0) 
   { 
      // 
      // Find all series in study 
      // 
 
      Studies[0].FindSeries(); 
      if (StudySeries.Count > 0) 
      { 
         // 
         // Move all series to me 
         // 
 
         Studies[0].Move(string.Empty); 
      } 
   } 
 
   studyRetrieve = null; 
   query = null; 
   scp = null; 
 
   DicomNet.Shutdown(); 
   DicomEngine.Shutdown(); 
} 
 
void studyRetrieve_MatchStudy(object sender, MatchEventArgs<Study> e) 
{ 
   Studies.Add(e.Info); 
} 
 
void studyRetrieve_MatchSeries(object sender, MatchEventArgs<Series> e) 
{ 
   StudySeries.Add(e.Info); 
} 
Requirements

Target Platforms

See Also

Reference

Study Class

Study Members

Help Version 22.0.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Scu Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.