This documentation is archived and is not being maintained.

PackageDigitalSignature.CertificateEmbeddingOption Property

Gets the X.509 certificate embedding option.

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

public CertificateEmbeddingOption CertificateEmbeddingOption { get; }

Property Value

Type: System.IO.Packaging.CertificateEmbeddingOption
One of the CertificateEmbeddingOption values that specifies the option for the digital signature.

ExceptionCondition
InvalidOperationException

The digital Signature has been deleted.

X.509 certificates used to validate a package may be stored in one of three locations:

InCertificatePart

In its own certificate PackagePart in the package.

The X.509 certificate can be obtained through the Signer property.

InSignaturePart

Within the content of the SignaturePart in the package.

The X.509 certificate can be obtained through the Signer property.

NotEmbedded

External to the package in a location known by both the application that creates the signature and the application that later uses the signature for validation.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: