CmsSigner.IncludeOption Property
The IncludeOption property sets or retrieves the option that controls whether the root and entire chain associated with the signing certificate are included with the created CMS/PKCS #7 message.
Assembly: System.Security (in System.Security.dll)
Property Value
Type: System.Security.Cryptography.X509Certificates.X509IncludeOptionA member of the X509IncludeOption enumeration that specifies how much of the X509 certificate chain should be included in the CmsSigner object. The IncludeOption property can be one of the following X509IncludeOption members.
Name | Value | Meaning |
|---|---|---|
None | 0 | The certificate chain is not included. |
ExcludeRoot | 1 | The certificate chain, except for the root certificate, is included. |
EndCertOnly | 2 | Only the end certificate is included. |
WholeChain | 3 | The certificate chain, including the root certificate, is included. |
| Exception | Condition |
|---|---|
| ArgumentException |
One of the arguments provided to a method was not valid. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.