Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
GetSignature Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : GetSignature Method




item
The item in which the required Digital Signature is located. Set this parameter to null if the Digital Signature is located in the main Data Set.
index
The zero-based index of the required Digital Signature. This should be a number from 0 to GetSignaturesCount - 1.
Returns the Digital Signatures Sequence Item that corresponds to the Digital Signature at the specified index.

Syntax

Visual Basic (Declaration) 
Public Function GetSignature( _
   ByVal item As DicomElement, _
   ByVal index As Integer _
) As DicomElement
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim item As DicomElement
Dim index As Integer
Dim value As DicomElement
 
value = instance.GetSignature(item, index)
C# 
public DicomElement GetSignature( 
   DicomElement item,
   int index
)
Managed Extensions for C++ 
public: DicomElement* GetSignature( 
   DicomElement* item,
   int index
) 
C++/CLI 
public:
DicomElement^ GetSignature( 
   DicomElement^ item,
   int index
) 

Parameters

item
The item in which the required Digital Signature is located. Set this parameter to null if the Digital Signature is located in the main Data Set.
index
The zero-based index of the required Digital Signature. This should be a number from 0 to GetSignaturesCount - 1.

Return Value

The Digital Signatures Sequence Item that corresponds to the required Digital Signature, or a null reference (Nothing in Visual Basic) if the specified index is invalid.

Example

For an example, refer to GetSignaturesCount.

Remarks

For each Digital Signature in the main Data Set or in an item of a sequence of items, there should be a corresponding item under the Digital Signatures sequence (FFFA,FFFA) located in the main Data Set or in the item. This method can be used to obtain that Digital Signatures Sequence Item.

Along with this method, call the GetSignaturesCount method to enumerate the Digital Signatures in the main Data Set or in an item of a sequence of items. Once the Digital Signatures Sequence Item is obtained, the following methods can be used to verify, delete, or get information about the Digital Signature:

VerifySignature

DeleteSignature

GetSignatureUID

GetSignatureDateTime

GetSignedElementsCount

GetSignedElement

GetMacTransferSyntax

GetMacAlgorithm

SaveCertificate

Call the FindSignature method, to search the whole Data Set for a specific Digital Signature.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Dicom requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features