Allows the add-in to handle a N-GET-REQ command.
public DicomCommandStatusType OnNGet2(
DicomClient Client,
byte PresentationId,
int MessageID,
string AffectedClass,
string Instance,
long[] Attributes,
DicomDataSet Response,
out StatusBase StatusBaseArgs
)
Public Function OnNGet2(
ByVal Client As DicomClient,
ByVal PresentationId As Byte,
ByVal MessageID As Integer,
ByVal AffectedClass As String,
ByVal Instance As String,
ByVal Attributes() As Long,
ByVal Response As DicomDataSet,
ByRef StatusBaseArgs As StatusBase
) As DicomCommandStatusType
public:
DicomCommandStatusType^ OnNGet2(
DicomClient^ Client,
Byte PresentationId,
Int32 MessageID,
String^ AffectedClass,
String^ Instance,
array<Int64>^ Attributes,
DicomDataSet^ Response,
StatusBase^ %StatusBaseArgs
)
Client
The client that sent the command.
PresentationId
The Presentation Context ID. The ID provides information about both the class type of the data and the Transfer Syntax to use when transferring the data.
MessageID
The Message ID. Each message sent by a member of a connection should have a unique ID. Since a member of a connection may send several messages, this ID allows that member to identify when a specific request has been completed.
AffectedClass
The class affected by the request. This will be a SOP Class or a Meta SOP Class.
Instance
The instance of the class. A server may, for example, have three instances of the Nuclear Medicine Class. This value identifies the data with a specific instance.
Attributes
An array of the required attributes. The attributes must be specified using the Data Element Tags.
Response
A DicomDataSet where one data element is encoded for each attribute value returned. The response DicomDataSet to be filled by the implementor.
StatusBaseArgs
An object derived from StatusBase that contains the optional status DICOM Elements to be added to the command set. This is returned by the implementor.
A DicomCommandStatusType representing the outcome of processing.
The OnNGet2 is a replacement for the OnNGet method.
When the DICOM Listening Service (Leadtools.Dicom.Server.exe) gets a N-GET-REQ, it does the following:
Checks if the IProcessNGet2 interface has been implemented by an addin. If so, then DICOM Listening Service calls the OnNGet2 method to handle the N-GET-REQ.
Otherwise, checks if the IProcessNGet has been implemented by an addin. If so, then DICOM Listening Service calls the OnNGet method to handle the N-GET-REQ.
The StatusBaseArgs argument is used to set additional optional status DICOM Elements in the N-GET-RSP command set.
If the return value is DicomCommandStatusType.Success, then the out argument StatusBaseArgs should return an instance of StatusBase.
If the return value is not DicomCommandStatusType.Success, then the out argument StatusBaseArgs should be an instance of one of the following StatusBase derived classes:
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document