Lokad SDK for .NET - Documentation
That<(Of <(T>)>) Method (item, rules)
NamespacesLokadEnforceThat<(Of <(T>)>)(T, array<Rule<(Of <(T>)>)>[]()[])
Runs the rules against single argument, using scope that fails on WhenError(RuleLevel).
Declaration Syntax
C#Visual BasicVisual C++
public static void That<T>(
	T item,
	params Rule<T>[] rules
)
Public Shared Sub That(Of T) ( _
	item As T, _
	ParamArray rules As Rule(Of T)() _
)
public:
generic<typename T>
static void That(
	T item, 
	... array<Rule<T>^>^ rules
)
Generic Template Parameters
T
type of the item to validate
Parameters
item (T)
The item to validate.
rules (array< Rule<(Of <(T>)>) >[]()[])
The rules.
Exceptions
ExceptionCondition
RuleExceptionWhen check fails

Assembly: Lokad.Sdk (Module: Lokad.Sdk) Version: 2.4.669.0 (2.4.669.0)