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.

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