This topic has not yet been rated - Rate this topic

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.

Namespace:  System.Security.Cryptography.Pkcs
Assembly:  System.Security (in System.Security.dll)
public X509IncludeOption IncludeOption { get; set; }

Property Value

Type: System.Security.Cryptography.X509Certificates.X509IncludeOption
A 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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ