PropertyInvalidExceptionValidateNotEmptyT Method (ICollectionT, String, String) | 
  
    Namespace: 
   AGI.Foundation
    Assembly:
   AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic static void ValidateNotEmpty<T>(
	ICollection<T> value,
	string propertyName,
	string exceptionMessage
)
Public Shared Sub ValidateNotEmpty(Of T) ( 
	value As ICollection(Of T),
	propertyName As String,
	exceptionMessage As String
)
public:
generic<typename T>
static void ValidateNotEmpty(
	ICollection<T>^ value, 
	String^ propertyName, 
	String^ exceptionMessage
)
static member ValidateNotEmpty : 
        value : ICollection<'T> * 
        propertyName : string * 
        exceptionMessage : string -> unit 
Parameters
- value
 - Type: System.Collections.GenericICollectionT
The property value. - propertyName
 - Type: SystemString
The name of the property. - exceptionMessage
 - Type: SystemString
The message to use when throwing the exception. 
Type Parameters
- T
 - The type of items in the collection.
 
Exceptions
See Also