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




signatureItem
The Digital Signatures Sequence Item that corresponds to the Digital Signature. This cannot be null.
Returns the number of Data Elements covered by the specified Digital Signature.

Syntax

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

Parameters

signatureItem
The Digital Signatures Sequence Item that corresponds to the Digital Signature. This cannot be null.

Return Value

The number of Data Elements covered by the specified Digital Signature.

Example

For an example, refer to VerifySignature.

Remarks

The Digital Signatures Sequence Item of a Digital Signature should reference an item under the Message Authentication Code (MAC) Parameters Sequence associated with the Digital Signatures Sequence. The Data Elements Signed (0400,0020) under the referenced MAC Parameters Sequence Item specifies the signed Data Elements. Call this method to obtain the number of Data Elements specified by this Data Element.

Along with this method, call the GetSignedElement method to enumerate the Data Elements covered by the Digital Signature.

The following methods can also be used to get information about the Digital Signature:

GetSignatureUID

GetSignatureDateTime

GetMacTransferSyntax

GetMacAlgorithm

SaveCertificate

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