Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
Available since 2.0
Return to top
Show:
© 2017 Microsoft