SetPresentationID method (ILEADDicomNet)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short SetPresentationID (long hPDU, long lIndex, short nID);

Overview

Refer to Working with DICOM Associate Connections.

Remarks

Sets the ID for a Presentation Context.

A DICOM Associate (Request or Accept) can have multiple Presentation Contexts. The ID for each of these Presentation Contexts must be unique. The IDs for the Presentation Context entries for the specified DICOM Associate should start at 1, and must be odd.

For example, a DICOM Associate may have three Presentation Context entries. One of those entries should have an ID of 1. The IDs must be unique. (Having two Presentation Context entries with an ID of 3 is not valid.) Therefore the IDs may be 1 for the first Presentation Context, 3 for the next one and 5 for the last one.

See Also

Elements:

DeletePresentation method, GetPresentationID method, GetPresentationCount method, GetPresentationResult method, GetPresentationAbstract method, AddPresentation method

Topics:

DICOM Associate Connection: Modifying a DICOM Associate Handle