Returns an array of usages consisting of the intersection of the valid usages for all certificates in an array of certificates.

Namespace: LLCryptoLib.Security.Certificates
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public static string[] GetValidUsages(
	Certificate[] certificates
)
Visual Basic
Public Shared Function GetValidUsages ( _
	certificates As Certificate() _
) As String()
Visual C++
public:
static array<String^>^ GetValidUsages(
	array<Certificate^>^ certificates
)

Parameters

certificates
Type: array<LLCryptoLib.Security.Certificates..::..Certificate>[]()[][]
Array of certificates to be checked for valid usage.

Return Value

An array of valid usages -or- a null reference (Nothing in Visual Basic) if all certificates support all usages.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptioncertificates is a null reference (Nothing in Visual Basic).
System..::..ArgumentExceptionThe array of certificates contains at least one invalid entry.
LLCryptoLib.Security.Certificates..::..CertificateExceptionAn error occurs while determining the intersection of valid usages.

See Also