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.

Exception Condition
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
Available since 3.0
Return to top
Show: