X509BasicConstraintsExtension Constructor (Boolean, Boolean, Int32, Boolean)
.NET Framework 4
Initializes a new instance of the X509BasicConstraintsExtension class. Parameters specify a value that indicates whether a certificate is a certificate authority (CA) certificate, a value that indicates whether the certificate has a restriction on the number of path levels it allows, the number of levels allowed in a certificate's path, and a value that indicates whether the extension is critical.
Assembly: System (in System.dll)
public X509BasicConstraintsExtension( bool certificateAuthority, bool hasPathLengthConstraint, int pathLengthConstraint, bool critical )
Parameters
- certificateAuthority
- Type: System.Boolean
true if the certificate is a certificate authority (CA) certificate; otherwise, false.
- hasPathLengthConstraint
- Type: System.Boolean
true if the certificate has a restriction on the number of path levels it allows; otherwise, false.
- pathLengthConstraint
- Type: System.Int32
The number of levels allowed in a certificate's path.
- critical
- Type: System.Boolean
true if the extension is critical; otherwise, false.
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.