CryptoSys PKI Toolkit Manual

X509.KeyUsageFlags Method

Returns a bitfield containing the keyUsage flags.

Syntax

[C#]
public static int KeyUsageFlags(
	string certFile
)
[VB.NET]
Public Shared Function KeyUsageFlags ( _
	certFile As String _
) As Integer

Parameters

certFile
Filename of certificate file (or its base64 representation)

Return Value

If successful, it returns a positive integer containing the keyUsage flags; or 0 if no keyUsage flags are set; otherwise it returns a negative error code

Remarks

See X509.KeyUsageOptions.

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: X509_KeyUsageFlags

[Contents] [Index]

[HOME]   [NEXT: X509.MakeCRL Method...]

Copyright © 2004-10 D.I. Management Services Pty Ltd. All rights reserved.