Share via


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)

Syntax

'Declaration
Public Enumeration XdSignatureStatus
'Usage
Dim instance As XdSignatureStatus
public enum XdSignatureStatus

Members

Member name Description
xdSignatureStatusError The status of the specified digital signature cannot be determined.
xdSignatureStatusValid The specified digital signature is valid.
xdSignatureStatusInvalid The specified digital signature is invalid.
xdSignatureStatusUnsupported The specified digital signature is not supported by Microsoft Office InfoPath 2003.

Remarks

These enumerated values are returned by the Status property

Examples

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

See also

Reference

Microsoft.Office.Interop.InfoPath.SemiTrust namespace