Export (0) Print
Expand All
Expand Minimize

XdSignatureStatus Enumeration

The XdSignatureStatus enumeration is used to determine the status of a digital signature.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

public enum XdSignatureStatus

Member nameDescription
xdSignatureStatusErrorThe status of the specified digital signature cannot be determined.
xdSignatureStatusValidThe specified digital signature is valid.
xdSignatureStatusInvalidThe specified digital signature is invalid.
xdSignatureStatusUnsupportedThe specified digital signature is not supported by Microsoft Office InfoPath 2003.

These enumerated values are returned by the Status property

public void DisplaySignatureProperties()
{
 SignatureObject signature = thisXDocument.SignedDataBlocks[0].Signatures[0];
 string signatureStatus = "UNKNOWN";
 switch(signature.Status)
 {
  case XdSignatureStatus.xdSignatureStatusValid : 
   signatureStatus = "VALID";
   break;
  case XdSignatureStatus.xdSignatureStatusInvalid : 
   signatureStatus = "INVALID";
   break;
  case XdSignatureStatus.xdSignatureStatusError :
   signatureStatus = "ERROR";
   break;
  case XdSignatureStatus.xdSignatureStatusUnsupported :
   signatureStatus = "UNSUPPORTED";
   break;
 }
 thisXDocument.UI.Alert(" Signature Status = " + signatureStatus);
}
Show:
© 2014 Microsoft