Class ApplicationService_Validation_Tests.MyMethod6Input
Inheritance
object
ApplicationService_Validation_Tests.MyMethod6Input
Implements
System.ComponentModel.DataAnnotations.IValidatableObject
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Validation
Assembly: Volo.Abp.Validation.Tests.dll
Syntax
public class ApplicationService_Validation_Tests.MyMethod6Input : IValidatableObject
Constructors
MyMethod6Input()
Declaration
public MyMethod6Input()
Properties
MyIntValue
Declaration
public int MyIntValue { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
MyStringValue
Declaration
[Required]
[MinLength(2)]
public string MyStringValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Validate(ValidationContext)
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ComponentModel.DataAnnotations.ValidationContext | validationContext |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><System.ComponentModel.DataAnnotations.ValidationResult> |
Implements
System.ComponentModel.DataAnnotations.IValidatableObject