Edit

Share via


XdSignatureRelation Enum

Definition

The XdSignatureRelation enumeration is used to determine how digital signatures can be added to a SignedDataBlockObject object.

public enum class XdSignatureRelation
public enum XdSignatureRelation
type XdSignatureRelation = 
Public Enum XdSignatureRelation
Inheritance
XdSignatureRelation

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.

Applies to