Creates the Command Set and inserts the elements for the specified command.
public void InitializeCommandSet(Leadtools.Dicom.DicomCommandType commandType,bool request)
Public Sub InitializeCommandSet( _ByVal commandType As Leadtools.Dicom.DicomCommandType, _ByVal request As Boolean _)
public void InitializeCommandSet(Leadtools.Dicom.DicomCommandType commandType,bool request)
function Leadtools.Dicom.DicomDataSet.InitializeCommandSet(commandType ,request)
public:void InitializeCommandSet(Leadtools.Dicom.DicomCommandType commandType,bool request)
commandType
Type of command to create.
request
true to create the command set as a request; false to create the command set as a response.
A Command Set is a special type of Data Set. Therefore, to create a Command Set, create a Data Set by instantiating DicomDataSet, and then initialize it by calling InitializeCommandSet method.
This example will initialize a new DICOM command set and copy it to another command set.
using Leadtools;using Leadtools.Dicom;public void TestCommandSet(){//Make sure to initialize the DICOM engine, this needs to be done only once//In the whole applicationDicomEngine.Startup();using (DicomDataSet ds = new DicomDataSet()){ds.InitializeCommandSet(DicomCommandType.CFind, true);Debug.Assert(ds.InformationCommand == DicomCommandType.CFind);Debug.Assert(ds.IsRequestCommand == true);using (DicomDataSet ds1 = new DicomDataSet()){ds1.Copy(ds, null, null);}}DicomEngine.Shutdown();}
Imports LeadtoolsImports Leadtools.DicomPublic Sub TestCommandSet()'Make sure to initialize the DICOM engine, this needs to be done only once'In the whole applicationDicomEngine.Startup()Dim ds As DicomDataSet = New DicomDataSet()Using (ds)ds.InitializeCommandSet(DicomCommandType.CFind, True)Debug.Assert(ds.InformationCommand = DicomCommandType.CFind)Debug.Assert(ds.IsRequestCommand = True)Dim ds1 As DicomDataSet = New DicomDataSet()Using (ds1)ds1.Copy(ds, Nothing, Nothing)End UsingEnd UsingDicomEngine.Shutdown()End Sub
|
Products |
Support |
Feedback: InitializeCommandSet Method - Leadtools.Dicom |
Introduction |
Help Version 19.0.2017.6.16
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.