Throws an 'ArgumentException' is an certificate collection is null or empty.

Namespace: Nehta.VendorLibrary.Common
Assembly: Nehta.VendorLibrary.Common (in Nehta.VendorLibrary.Common.dll) Version: 3.0.2.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

ExceptionCondition
System..::..ArgumentExceptionThrown when the collection is null or empty.

See Also