LDicomAssociate::GetPresentation
#include "ltdic.h"
L_UCHAR LDicomAssociate::GetPresentation(nIndex)
| L_INT nIndex; | /* index */ | 
Returns the Presentation Context ID of the Presentation Context at the specified index, for the DICOM Associate.
| Parameter | Description | 
| nIndex | Index of the Presentation Context ID to get. | 
Returns
The Presentation Context ID for the specified Presentation Context.
Comments
A DICOM Associate (Request or Accept) can have multiple Presentation Contexts. The Presentation ID can be retrieved by passing the appropriate value for nIndex.
To determine the number of presentation contexts a DICOM Associate has, call LDicomAssociate::GetPresentationCount.
Required DLLs and Libraries
| LTDIC For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application | 
See Also
| Functions: | LDicomAssociate::AddPresentation, LDicomAssociate::SetPresentation, LDicomAssociate::DelPresentation, LDicomAssociate::GetPresentationCount | 
| Topics: | 
Example
For an example, refer to LDicomAssociate::DelPresentation.