XmlDsigLevel

SignOptions.XmlDsigLevel property

Specifies the level of a digital signature based on XML-DSig standard. The default value is XmlDSig.

public XmlDsigLevel XmlDsigLevel { get; set; }

Remarks

Different levels of XAdES signatures can be created starting from Office 2010.

Examples

Shows how to sign document based on XML-DSig standard.

CertificateHolder certificateHolder = CertificateHolder.Create(MyDir + "morzal.pfx", "aw");
SignOptions signOptions = new SignOptions { XmlDsigLevel = XmlDsigLevel.XAdEsEpes };

string inputFileName = MyDir + "Document.docx";
string outputFileName = ArtifactsDir + "DigitalSignatureUtil.XmlDsig.docx";
DigitalSignatureUtil.Sign(inputFileName, outputFileName, certificateHolder, signOptions);

See Also