Class NotEmptyAttribute
Ensures that the value of a parameter or property is not empty.
Inheritance
NotEmptyAttribute
Assembly: Solti.Utils.Rpc.Interfaces.dll
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class NotEmptyAttribute : ValidatorAttributeBase, IConditionalValidatior, IParameterValidator, IPropertyValidator, ICustomValidator
Constructors
NotEmptyAttribute()
Declaration
public NotEmptyAttribute()
Properties
ParameterValidationErrorMessage
Declaration
public string ParameterValidationErrorMessage { get; set; }
Property Value
PropertyValidationErrorMessage
Declaration
public string PropertyValidationErrorMessage { get; set; }
Property Value
Explicit Interface Implementations
IParameterValidator.Validate(ParameterInfo, Object, IInjector)
Declaration
void IParameterValidator.Validate(ParameterInfo param, object value, IInjector _)
Parameters
IPropertyValidator.Validate(PropertyInfo, Object, IInjector)
Declaration
void IPropertyValidator.Validate(PropertyInfo prop, object value, IInjector _)
Parameters
Type |
Name |
Description |
PropertyInfo |
prop |
|
Object |
value |
|
Solti.Utils.DI.Interfaces.IInjector |
_ |
|
Implements