XdSignatureRelation enumeration
The XdSignatureRelation enumeration is used to determine how digital signatures can be added to a SignedDataBlockObject object.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
<GuidAttribute("57C4BDEA-6E4C-39E2-ACD2-AA61226AE895")> _
Public Enumeration XdSignatureRelation
'Usage
Dim instance As XdSignatureRelation
[GuidAttribute("57C4BDEA-6E4C-39E2-ACD2-AA61226AE895")]
public enum XdSignatureRelation
Members
Member name | Description | |
---|---|---|
xdSignatureRelationSingle | Specifies that only one signature can exist in the SignedDataBlock. | |
xdSignatureRelationCoSign | Specifies that signatures are independent of each other in SignedDataBlock. | |
xdSignatureRelationCounterSign | Specifies that each signature signs the preceding signature in the SignedDataBlock. |
Remarks
These enumerated values are returned by the SignatureRelation property.
Examples
public void DisplaySDBProperties()
{
SignedDataBlock sdb = thisXDocument.SignedDataBlocks[0];
string sigRelation = "UNKNOWN";
switch(sdb.SignatureRelation)
{
case XdSignatureRelation.xdSignatureRelationSingle :
sigRelation = "SINGLE";
break;
case XdSignatureRelation.xdSignatureRelationCoSign :
sigRelation = "COSIGN";
break;
case XdSignatureRelation.xdSignatureRelationCounterSign :
sigRelation = "COUNTERSIGN";
break;
default:
break;
}
thisXDocument.UI.Alert("Signatures relation: " + sigRelation );
}