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; }
You cannot set this property in XAML.

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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: