Class ValidatePropertiesAttribute

Indicates that the properties of a parameter or property may be validated.

Inheritance
Object
Attribute
ValidatorAttributeBase
ValidatePropertiesAttribute
Implements
IConditionalValidatior
IAsyncPropertyValidator
IPropertyValidator
IAsyncParameterValidator
IParameterValidator
ICustomValidator
Inherited Members
ValidatorAttributeBase.Condition
ValidatorAttributeBase.SupportsNull
Attribute.Equals(Object)
Attribute.GetCustomAttribute(Assembly, Type)
Attribute.GetCustomAttribute(Assembly, Type, Boolean)
Attribute.GetCustomAttribute(MemberInfo, Type)
Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)
Attribute.GetCustomAttribute(Module, Type)
Attribute.GetCustomAttribute(Module, Type, Boolean)
Attribute.GetCustomAttribute(ParameterInfo, Type)
Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)
Attribute.GetCustomAttributes(Assembly)
Attribute.GetCustomAttributes(Assembly, Boolean)
Attribute.GetCustomAttributes(Assembly, Type)
Attribute.GetCustomAttributes(Assembly, Type, Boolean)
Attribute.GetCustomAttributes(MemberInfo)
Attribute.GetCustomAttributes(MemberInfo, Boolean)
Attribute.GetCustomAttributes(MemberInfo, Type)
Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)
Attribute.GetCustomAttributes(Module)
Attribute.GetCustomAttributes(Module, Boolean)
Attribute.GetCustomAttributes(Module, Type)
Attribute.GetCustomAttributes(Module, Type, Boolean)
Attribute.GetCustomAttributes(ParameterInfo)
Attribute.GetCustomAttributes(ParameterInfo, Boolean)
Attribute.GetCustomAttributes(ParameterInfo, Type)
Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)
Attribute.GetHashCode()
Attribute.IsDefaultAttribute()
Attribute.IsDefined(Assembly, Type)
Attribute.IsDefined(Assembly, Type, Boolean)
Attribute.IsDefined(MemberInfo, Type)
Attribute.IsDefined(MemberInfo, Type, Boolean)
Attribute.IsDefined(Module, Type)
Attribute.IsDefined(Module, Type, Boolean)
Attribute.IsDefined(ParameterInfo, Type)
Attribute.IsDefined(ParameterInfo, Type, Boolean)
Attribute.Match(Object)
Attribute.TypeId
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Solti.Utils.Rpc.Interfaces
Assembly: Solti.Utils.Rpc.Interfaces.dll
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class ValidatePropertiesAttribute : ValidatorAttributeBase, IConditionalValidatior, IAsyncPropertyValidator, IPropertyValidator, IAsyncParameterValidator, IParameterValidator, ICustomValidator

Constructors

ValidatePropertiesAttribute(Boolean)

Creates a new ValidatePropertiesAttribute instance.

Declaration
public ValidatePropertiesAttribute(bool aggregate = false)
Parameters
Type Name Description
Boolean aggregate

Properties

Aggregate

Returns true if the validator should collect all the validation errors.

Declaration
public bool Aggregate { get; }
Property Value
Type Description
Boolean

Methods

ShouldRun(MethodInfo, IInjector)

See ShouldRun(MethodInfo, IInjector).

Declaration
public override bool ShouldRun(MethodInfo containingMethod, IInjector currentScope)
Parameters
Type Name Description
MethodInfo containingMethod
Solti.Utils.DI.Interfaces.IInjector currentScope
Returns
Type Description
Boolean
Overrides
ValidatorAttributeBase.ShouldRun(MethodInfo, IInjector)

Explicit Interface Implementations

IAsyncParameterValidator.ValidateAsync(ParameterInfo, Object, IInjector)

Declaration
Task IAsyncParameterValidator.ValidateAsync(ParameterInfo param, object value, IInjector currentScope)
Parameters
Type Name Description
ParameterInfo param
Object value
Solti.Utils.DI.Interfaces.IInjector currentScope
Returns
Type Description
Task

IAsyncPropertyValidator.ValidateAsync(PropertyInfo, Object, IInjector)

Declaration
Task IAsyncPropertyValidator.ValidateAsync(PropertyInfo prop, object value, IInjector currentScope)
Parameters
Type Name Description
PropertyInfo prop
Object value
Solti.Utils.DI.Interfaces.IInjector currentScope
Returns
Type Description
Task

IParameterValidator.ParameterValidationErrorMessage

Declaration
string IParameterValidator.ParameterValidationErrorMessage { get; set; }
Returns
Type Description
String

IParameterValidator.Validate(ParameterInfo, Object, IInjector)

Declaration
void IParameterValidator.Validate(ParameterInfo param, object value, IInjector currentScope)
Parameters
Type Name Description
ParameterInfo param
Object value
Solti.Utils.DI.Interfaces.IInjector currentScope

IPropertyValidator.PropertyValidationErrorMessage

Declaration
string IPropertyValidator.PropertyValidationErrorMessage { get; set; }
Returns
Type Description
String

IPropertyValidator.Validate(PropertyInfo, Object, IInjector)

Declaration
void IPropertyValidator.Validate(PropertyInfo prop, object value, IInjector currentScope)
Parameters
Type Name Description
PropertyInfo prop
Object value
Solti.Utils.DI.Interfaces.IInjector currentScope

Implements

IConditionalValidatior
IAsyncPropertyValidator
IPropertyValidator
IAsyncParameterValidator
IParameterValidator
ICustomValidator
In This Article
Back to top Generated by DocFX