Throws an 'ArgumentException' is an certificate collection is null
or empty.
Namespace: Nehta.VendorLibrary.CommonAssembly: Nehta.VendorLibrary.Common (in Nehta.VendorLibrary.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static void CheckNotNullOrEmpty( X509Certificate2Collection certs, string argumentName ) |
Visual Basic |
---|
Public Shared Sub CheckNotNullOrEmpty ( _ certs As X509Certificate2Collection, _ argumentName As String _ ) |
Visual C++ |
---|
public: static void CheckNotNullOrEmpty( X509Certificate2Collection^ certs, String^ argumentName ) |
Parameters
- certs
- Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2Collection
Certificate collection to test. Cannot be null.
- argumentName
- Type: System..::..String
Name of the argument. Cannot be null.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | Thrown when the collection is null or empty. |