XdSignatureRelation 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 XdSignatureRelation enumeration is used to determine how digital signatures can be added to a SignedDataBlockObject object.
public enum class XdSignatureRelation
[System.Runtime.InteropServices.Guid("57C4BDEA-6E4C-39E2-ACD2-AA61226AE895")]
public enum XdSignatureRelation
type XdSignatureRelation =
Public Enum XdSignatureRelation
- Inheritance
-
XdSignatureRelation
- Attributes
Fields
Name | Value | Description |
---|---|---|
xdSignatureRelationSingle | 1 | Specifies that only one signature can exist in the SignedDataBlock. |
xdSignatureRelationCoSign | 2 | Specifies that signatures are independent of each other in SignedDataBlock. |
xdSignatureRelationCounterSign | 3 | Specifies that each signature signs the preceding signature in the SignedDataBlock. |
Examples
public void DisplaySDBProperties()
{
SignedDataBlock sdb = thisXDocument.SignedDataBlocks[0];
string sigRelation = "UNKNOWN";
switch(sdb.SignatureRelation)
{
case <span class="label">XdSignatureRelation</span>.xdSignatureRelationSingle :
sigRelation = "SINGLE";
break;
case <span class="label">XdSignatureRelation</span>.xdSignatureRelationCoSign :
sigRelation = "COSIGN";
break;
case <span class="label">XdSignatureRelation</span>.xdSignatureRelationCounterSign :
sigRelation = "COUNTERSIGN";
break;
default:
break;
}
thisXDocument.UI.Alert("Signatures relation: " + sigRelation );
}
Remarks
These enumerated values are returned by the SignatureRelation property.