Export (0) Print
Expand All
Expand Minimize

XdSignatureStatus Enumeration (Microsoft.Office.Interop.InfoPath)

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)

'Declaration
Public Enumeration XdSignatureStatus
'Usage
Dim instance As XdSignatureStatus

 Member nameDescription
xdSignatureStatusError 
xdSignatureStatusInvalid 
xdSignatureStatusUnsupported 
xdSignatureStatusValid 

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 );
}

Community Additions

ADD
Show:
© 2015 Microsoft