Summary
Determine if a property name is actually contained within this.
Syntax
public static bool ContainsProperty<TViewModel, TProp>(this IValidatesProperties validatesProperties, Expression<Func<TViewModel, TProp>> propertyExpression, bool exclusively = false)
Type Parameters
Name |
Description |
TViewModel |
View model type. |
TProp |
View model property type. |
Parameters
Name |
Type |
Description |
validatesProperties |
IValidatesProperties |
The validation component. |
propertyExpression |
Expression<Func<TViewModel, TProp>> |
ViewModel property. |
exclusively |
bool |
Indicates if the property to find is unique. |
Return Value
Type |
Description |
bool |
Returns true if it contains the property, otherwise false. |