This topic has not yet been rated - Rate this topic

X509BasicConstraintsExtension Constructor (Boolean, Boolean, Int32, Boolean)

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.

Namespace:  System.Security.Cryptography.X509Certificates
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.

.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