Returns an array of usages consisting of the intersection of the valid usages for all certificates in an array of certificates.
Namespace: LLCryptoLib.Security.CertificatesAssembly: 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
) |
Return Value
An array of valid usages -or- a null reference (
Nothing in Visual Basic) if all certificates support all usages.
Exceptions
Exception | Condition |
---|
System..::..ArgumentNullException | certificates is a null reference (Nothing in Visual Basic). |
System..::..ArgumentException | The array of certificates contains at least one invalid entry. |
LLCryptoLib.Security.Certificates..::..CertificateException | An error occurs while determining the intersection of valid usages. |
See Also