CertificateEmbeddingOption Enumeration

Specifies the location where the X.509 certificate that is used in signing is stored.

Namespace: System.IO.Packaging
Assembly: WindowsBase (in windowsbase.dll)

public enum CertificateEmbeddingOption
public enum CertificateEmbeddingOption
public enum CertificateEmbeddingOption
<object property="EnumerationValue" .../>

 Member nameDescription
InCertificatePartThe certificate is embedded in its own PackagePart
InSignaturePartThe certificate is embedded in the SignaturePart that is created for the signature being added. 
NotEmbeddedThe certificate in not embedded in the package. 

If the certificate is NotEmbedded in the package, an application that verifies signatures must provide a copy of the certificate in order to verify the signatures that are signed by it.

The following example shows how to use CertificateEmbeddingOption in order to set the PackageDigitalSignatureManager.CertificateOption property. For the complete sample, see Creating a Package with a Digital Signature Sample.

// Create the DigitalSignature Manager
PackageDigitalSignatureManager dsm =
    new PackageDigitalSignatureManager(package);
dsm.CertificateOption =

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions