Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

XdSignatureRelation enumeration

The XdSignatureRelation enumeration is used to determine how digital signatures can be added to a SignedDataBlockObject object.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
public enum XdSignatureRelation
Member nameDescription
xdSignatureRelationSingleSpecifies that only one signature can exist in the SignedDataBlock.
xdSignatureRelationCoSignSpecifies that signatures are independent of each other in SignedDataBlock.
xdSignatureRelationCounterSignSpecifies that each signature signs the preceding signature in the SignedDataBlock.

These enumerated values are returned by the SignatureRelation property.

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 );
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.