LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
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.
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
)
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:

Leadtools.Dicom.DicomDataSet.VerifySignature

Leadtools.Dicom.DicomDataSet.DeleteSignature

Leadtools.Dicom.DicomDataSet.GetSignatureUID

Leadtools.Dicom.DicomDataSet.GetSignatureDateTime

GetSignedElementsCount

Leadtools.Dicom.DicomDataSet.GetSignedElement

Leadtools.Dicom.DicomDataSet.GetMacTransferSyntax

GetMacAlgorithm

SaveCertificate

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

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

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