PackageDigitalSignature.Signer Property

Gets the X.509 certificate of the signer.

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

public X509Certificate Signer { get; }

Property Value

Type: System.Security.Cryptography.X509Certificates.X509Certificate
The digital certificate of the signer, or null if the certificate is not stored in the Package.

ExceptionCondition
InvalidOperationException

The digital Signature has been deleted.

Signer returns the X.509 certificate of the signer when the digital certificate is stored within the package (that is, when CertificateEmbeddingOption is InCertificatePart or InSignaturePart).

Signer returns null when the X.509 certificate is not stored in the package (that is, when CertificateEmbeddingOption is NotEmbedded).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft