PropertyInvalidExceptionValidateNotEmptyTKey, TValue Method (IDictionaryTKey, TValue, String, String) |
Namespace:
AGI.Foundation
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public static void ValidateNotEmpty<TKey, TValue>(
IDictionary<TKey, TValue> value,
string propertyName,
string exceptionMessage
)
Public Shared Sub ValidateNotEmpty(Of TKey, TValue) (
value As IDictionary(Of TKey, TValue),
propertyName As String,
exceptionMessage As String
)
public:
generic<typename TKey, typename TValue>
static void ValidateNotEmpty(
IDictionary<TKey, TValue>^ value,
String^ propertyName,
String^ exceptionMessage
)
static member ValidateNotEmpty :
value : IDictionary<'TKey, 'TValue> *
propertyName : string *
exceptionMessage : string -> unit
Parameters
- value
- Type: System.Collections.GenericIDictionaryTKey, TValue
The property value. - propertyName
- Type: SystemString
The name of the property. - exceptionMessage
- Type: SystemString
The message to use when throwing the exception.
Type Parameters
- TKey
- The type of keys in the dictionary.
- TValue
- The type of values in the dictionary.
Exceptions See Also