LEADTOOLS Medical (Leadtools.Dicom.Scp assembly)
LEAD Technologies, Inc

CreateTypedCommand<T>(IDicomCommandClientSessionProxy,DicomDataSet) Method






The type of the returned DicomCommand. This type should be inherited from a DicomCommand.
The Leadtools.Dicom.Scp.IDicomCommandClientSessionProxy object which will be used to handle the communication with the client.
The Leadtools.Dicom.DicomDataSet which is received with the client request.
Generic method for creating a typed command with the provided parameters.
Syntax
public virtual T CreateTypedCommand<T>( 
   IDicomCommandClientSessionProxy sessionProxy,
   DicomDataSet requestDataSet
)
where T: DicomCommand
'Declaration
 
Public Overloads Overridable Function CreateTypedCommand(Of T As DicomCommand)( _
   ByVal sessionProxy As IDicomCommandClientSessionProxy, _
   ByVal requestDataSet As DicomDataSet _
) As T
'Usage
 
Dim instance As DicomCommandFactory
Dim sessionProxy As IDicomCommandClientSessionProxy
Dim requestDataSet As DicomDataSet
Dim value As T
 
value = instance.CreateTypedCommand(Of T)(sessionProxy, requestDataSet)
public virtual T CreateTypedCommand<T>( 
   IDicomCommandClientSessionProxy sessionProxy,
   DicomDataSet requestDataSet
)where T: DicomCommand
 function Leadtools.Dicom.Scp.Command.DicomCommandFactory.CreateTypedCommand``1(IDicomCommandClientSessionProxy,DicomDataSet)( 
   sessionProxy ,
   requestDataSet 
)
public:
virtual T^ CreateTypedCommandgeneric<typename T>
( 
   IDicomCommandClientSessionProxy^ sessionProxy,
   DicomDataSet^ requestDataSet
) 
where T: DicomCommand

Parameters

sessionProxy
The Leadtools.Dicom.Scp.IDicomCommandClientSessionProxy object which will be used to handle the communication with the client.
requestDataSet
The Leadtools.Dicom.DicomDataSet which is received with the client request.

Type Parameters

T
The type of the returned DicomCommand. This type should be inherited from a DicomCommand.

Return Value

Returns the created DicomCommand.
Remarks

This method will try to create a DicomCommand with the given generic type. It will also pass the provided sessionProxy and requestDataSet to the command constructor.

If the method fails to create the command it will throw an exception.

Requirements

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

See Also

Reference

DicomCommandFactory Class
DicomCommandFactory Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom.Scp requires a Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features