Class NotEmptyAttribute

Ensures that the value of a parameter or property is not empty.

Inheritance
Object
Attribute
ValidatorAttributeBase
NotEmptyAttribute
Implements
IConditionalValidatior
IParameterValidator
IPropertyValidator
ICustomValidator
Inherited Members
ValidatorAttributeBase.Condition
ValidatorAttributeBase.SupportsNull
ValidatorAttributeBase.ShouldRun(MethodInfo, IInjector)
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 NotEmptyAttribute : ValidatorAttributeBase, IConditionalValidatior, IParameterValidator, IPropertyValidator, ICustomValidator

Constructors

NotEmptyAttribute()

Creates a new NotNullAttribute class.

Declaration
public NotEmptyAttribute()

Properties

ParameterValidationErrorMessage

See ParameterValidationErrorMessage.

Declaration
public string ParameterValidationErrorMessage { get; set; }
Property Value
Type Description
String

PropertyValidationErrorMessage

See PropertyValidationErrorMessage.

Declaration
public string PropertyValidationErrorMessage { get; set; }
Property Value
Type Description
String

Explicit Interface Implementations

IParameterValidator.Validate(ParameterInfo, Object, IInjector)

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

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

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