Gets the underlying Validate<TToValidate> gear.

Namespace: Keystone.Clockwork
Assembly: Keystone.Clockwork (in Keystone.Clockwork.dll)

public object GetValidationGear( 
object objectToValidate
MemberInfo memberToValidate
string memberToValidatePreferredName = null, 
bool isObjectToValidateAGearInput = false 
)
This language is not supported or no code example is available.

Parameters

objectToValidate

Type: object

The object to validate.

memberToValidate

Type: MemberInfo

The member to validate in the given object.

memberToValidatePreferredName

Type: string

Optional parameter that defines the member to validate preferred name.

isObjectToValidateAGearInput

Type: bool

Optional parameter that defines whether the object to validate is a gear input.

Return Value

The Validate<TToValidate> instance.
Exception type Condition

ArgumentException

If a null reference (Nothing in Visual Basic) or empty value is given for the arguments.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono