ViewModelRemoveValidationRuleT Method |
Removes a validation rule from a property.
Namespace:
Enkoni.Framework.UI.Mvvm
Assembly:
Enkoni.Framework.UI (in Enkoni.Framework.UI.dll) Version: 1.3.0.1
Syntaxprotected void RemoveValidationRule<T>(
Expression<Func<T>> property,
Func<string> rule
)
Protected Sub RemoveValidationRule(Of T) (
property As Expression(Of Func(Of T)),
rule As Func(Of String)
)
protected:
generic<typename T>
void RemoveValidationRule(
Expression<Func<T>^>^ property,
Func<String^>^ rule
)
member RemoveValidationRule :
property : Expression<Func<'T>> *
rule : Func<string> -> unit
Parameters
- property
- Type: System.Linq.ExpressionsExpressionFuncT
The property that is validated by the rule. - rule
- Type: SystemFuncString
The rule that must be removed.
Type Parameters
- T
- The type of the property.
See Also