ValidateMaximumLengthAttribute
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public class ValidateMaximumLengthAttribute : ValidateAttribute, _Attribute, IValidateRule, IReflectAttributeConverter
Inherited Properties
AllConditions
View Source
Declaration
public string[] AllConditions { get; set; }
AnyConditions
View Source
Declaration
public string[] AnyConditions { get; set; }
Condition
Boolean #Script Code Expression to Test ARGS:
- Request: IRequest
dto: Request DTO
- field: Property Name
it: Property Value
View Source
Declaration
public string Condition { get; set; }
ErrorCode
Custom ErrorCode to return
View Source
Declaration
public string ErrorCode { get; set; }
Message
Refer to FluentValidation docs for Variable
- {PropertyName}
- {PropertyValue}
View Source
Declaration
public string Message { get; set; }
Validator
Script Expression to create an IPropertyValidator registered in Validators.Types
View Source
Declaration
public string Validator { get; set; }
Inherited Methods
Combine(String, String[])
View Source
Declaration
public static string Combine(string comparand, params string[] conditions)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | comparand |
System.String[] | conditions |
ToReflectAttribute()
View Source
Declaration
public ReflectAttribute ToReflectAttribute()
Returns
Implements
System.Runtime.InteropServices._Attribute
- ServiceStack.IValidateRule
- ServiceStack.IReflectAttributeConverter