XdSignatureStatus Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The XdSignatureStatus enumeration is used to determine the status of a digital signature.
public enum class XdSignatureStatus
public enum XdSignatureStatus
type XdSignatureStatus =
Public Enum XdSignatureStatus
- Inheritance
-
XdSignatureStatus
Fields
Name | Value | Description |
---|---|---|
xdSignatureStatusError | 0 | The status of the specified digital signature cannot be determined. |
xdSignatureStatusValid | 1 | The specified digital signature is valid. |
xdSignatureStatusInvalid | 2 | The specified digital signature is invalid. |
xdSignatureStatusUnsupported | 3 | The specified digital signature is not supported by Microsoft Office InfoPath 2003. |
Examples
public void DisplaySignatureProperties()
{
SignatureObject signature = thisXDocument.SignedDataBlocks[0].Signatures[0];
string signatureStatus = "UNKNOWN";
switch(signature.Status)
{
case <span class="label">XdSignatureStatus</span>.xdSignatureStatusValid :
signatureStatus = "VALID";
break;
case <span class="label">XdSignatureStatus</span>.xdSignatureStatusInvalid :
signatureStatus = "INVALID";
break;
case <span class="label">XdSignatureStatus</span>.xdSignatureStatusError :
signatureStatus = "ERROR";
break;
case <span class="label">XdSignatureStatus</span>.xdSignatureStatusUnsupported :
signatureStatus = "UNSUPPORTED";
break;
}
thisXDocument.UI.Alert(" Signature Status = " + signatureStatus);
}
Remarks
These enumerated values are returned by the Status property