Export (0) Print
Expand All

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.

ExceptionCondition
ArgumentException

One of the arguments provided to a method was not valid.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft