Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XdSignatureStatus 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)

[GuidAttribute("E5E3A7C3-B69A-3E65-8019-1D8B1A5779CD")]
public enum XdSignatureStatus

Member nameDescription
xdSignatureStatusError
xdSignatureStatusValid
xdSignatureStatusInvalid
xdSignatureStatusUnsupported

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 );
}
Show:
© 2015 Microsoft