RingDotNetfor Ring

System.ComponentModel.DataAnnotations

36 wrapped types. Load them with using { "System.ComponentModel.DataAnnotations" }. Click a class to open it.

AllowedValuesAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.AllowedValuesAttribute · assembly System.ComponentModel.Annotations

Constructors

new AllowedValuesAttribute(object[] values)

Ring: new AllowedValuesAttribute(args) uses one constructor; the others are chosen by the parameter names: new AllowedValuesAttribute().@New([ :param = value ]) or dnNew("AllowedValuesAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Valuesobject[]reado.Values

Methods

MethodRing call.NET overloads
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

AssociatedMetadataTypeTypeDescriptionProvider class · extends TypeDescriptionProvider

System.ComponentModel.DataAnnotations.AssociatedMetadataTypeTypeDescriptionProvider · assembly System.ComponentModel.Annotations

Constructors

new AssociatedMetadataTypeTypeDescriptionProvider(Type type)
new AssociatedMetadataTypeTypeDescriptionProvider(Type type, Type associatedMetadataType)

Ring: new AssociatedMetadataTypeTypeDescriptionProvider(args) uses one constructor; the others are chosen by the parameter names: new AssociatedMetadataTypeTypeDescriptionProvider().@New([ :param = value ]) or dnNew("AssociatedMetadataTypeTypeDescriptionProvider",[ :param = value ]).

Methods

MethodRing call.NET overloads
GetTypeDescriptorGetTypeDescriptor([ :objectType = …, :instance = … ])ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)

Members of the base class are inherited.

Base64StringAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.Base64StringAttribute · assembly System.ComponentModel.Annotations

Constructors

new Base64StringAttribute()

Ring: new Base64StringAttribute(args) uses one constructor; the others are chosen by the parameter names: new Base64StringAttribute().@New([ :param = value ]) or dnNew("Base64StringAttribute",[ :param = value ]).

Methods

MethodRing call.NET overloads
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

CompareAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.CompareAttribute · assembly System.ComponentModel.Annotations

Constructors

new CompareAttribute(string otherProperty)

Ring: new CompareAttribute(args) uses one constructor; the others are chosen by the parameter names: new CompareAttribute().@New([ :param = value ]) or dnNew("CompareAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
OtherPropertystringreado.OtherProperty
OtherPropertyDisplayNamestringreado.OtherPropertyDisplayName
RequiresValidationContextboolreado.getRequiresValidationContext()

Methods

MethodRing call.NET overloads
FormatErrorMessagecallMethod("FormatErrorMessage",[p1])string FormatErrorMessage(string name)

Members of the base class are inherited.

ConcurrencyCheckAttribute class sealed · extends Attribute

System.ComponentModel.DataAnnotations.ConcurrencyCheckAttribute · assembly System.ComponentModel.Annotations

Constructors

new ConcurrencyCheckAttribute()

Ring: new ConcurrencyCheckAttribute(args) uses one constructor; the others are chosen by the parameter names: new ConcurrencyCheckAttribute().@New([ :param = value ]) or dnNew("ConcurrencyCheckAttribute",[ :param = value ]).

Members of the base class are inherited.

CreditCardAttribute class sealed · extends DataTypeAttribute

System.ComponentModel.DataAnnotations.CreditCardAttribute · assembly System.ComponentModel.Annotations

Constructors

new CreditCardAttribute()

Ring: new CreditCardAttribute(args) uses one constructor; the others are chosen by the parameter names: new CreditCardAttribute().@New([ :param = value ]) or dnNew("CreditCardAttribute",[ :param = value ]).

Methods

MethodRing call.NET overloads
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

CustomValidationAttribute class sealed · extends ValidationAttribute

System.ComponentModel.DataAnnotations.CustomValidationAttribute · assembly System.ComponentModel.Annotations

Constructors

new CustomValidationAttribute(Type validatorType, string method)

Ring: new CustomValidationAttribute(args) uses one constructor; the others are chosen by the parameter names: new CustomValidationAttribute().@New([ :param = value ]) or dnNew("CustomValidationAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ValidatorTypeTypereado.ValidatorType
TypeIdobjectreado.getTypeId()
Methodstringreado.Method
RequiresValidationContextboolreado.getRequiresValidationContext()

Methods

MethodRing call.NET overloads
FormatErrorMessagecallMethod("FormatErrorMessage",[p1])string FormatErrorMessage(string name)

Members of the base class are inherited.

DataAnnotationsValidationResult class

System.ComponentModel.DataAnnotations.ValidationResult · assembly System.ComponentModel.Annotations

Constructors

new DataAnnotationsValidationResult(string errorMessage)
new DataAnnotationsValidationResult(string errorMessage, IEnumerable<string> memberNames)

Ring: new DataAnnotationsValidationResult(args) uses one constructor; the others are chosen by the parameter names: new DataAnnotationsValidationResult().@New([ :param = value ]) or dnNew("DataAnnotationsValidationResult",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
MemberNamesIEnumerable<string>reado.MemberNames
ErrorMessagestringread, writeo.ErrorMessage o.ErrorMessage = v
SuccessValidationResultread · statico.Success

Methods

MethodRing call.NET overloads
ToStringcallMethod("ToString",[])string ToString()
DataTypeAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.DataTypeAttribute · assembly System.ComponentModel.Annotations

Constructors

new DataTypeAttribute(DataType dataType)
new DataTypeAttribute(string customDataType)

Ring: new DataTypeAttribute(args) uses one constructor; the others are chosen by the parameter names: new DataTypeAttribute().@New([ :param = value ]) or dnNew("DataTypeAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
DataTypeDataTypereado.DataType
CustomDataTypestringreado.CustomDataType
DisplayFormatDisplayFormatAttributereado.DisplayFormat

Methods

MethodRing call.NET overloads
GetDataTypeNamecallMethod("GetDataTypeName",[])string GetDataTypeName()
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

DeniedValuesAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.DeniedValuesAttribute · assembly System.ComponentModel.Annotations

Constructors

new DeniedValuesAttribute(object[] values)

Ring: new DeniedValuesAttribute(args) uses one constructor; the others are chosen by the parameter names: new DeniedValuesAttribute().@New([ :param = value ]) or dnNew("DeniedValuesAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Valuesobject[]reado.Values

Methods

MethodRing call.NET overloads
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

DisplayAttribute class sealed · extends Attribute

System.ComponentModel.DataAnnotations.DisplayAttribute · assembly System.ComponentModel.Annotations

Constructors

new DisplayAttribute()

Ring: new DisplayAttribute(args) uses one constructor; the others are chosen by the parameter names: new DisplayAttribute().@New([ :param = value ]) or dnNew("DisplayAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ShortNamestringread, writeo.ShortName o.ShortName = v
Namestringread, writeo.Name o.Name = v
Descriptionstringread, writeo.Description o.Description = v
Promptstringread, writeo.Prompt o.Prompt = v
GroupNamestringread, writeo.GroupName o.GroupName = v
ResourceTypeTyperead, writeo.ResourceType o.ResourceType = v
AutoGenerateFieldboolread, writeo.AutoGenerateField o.AutoGenerateField = v
AutoGenerateFilterboolread, writeo.AutoGenerateFilter o.AutoGenerateFilter = v
Orderintread, writeo.Order o.Order = v

Methods

MethodRing call.NET overloads
GetAutoGenerateFieldcallMethod("GetAutoGenerateField",[])bool? GetAutoGenerateField()
GetAutoGenerateFiltercallMethod("GetAutoGenerateFilter",[])bool? GetAutoGenerateFilter()
GetDescriptioncallMethod("GetDescription",[])string GetDescription()
GetGroupNamecallMethod("GetGroupName",[])string GetGroupName()
GetNamecallMethod("GetName",[])string GetName()
GetOrdercallMethod("GetOrder",[])int? GetOrder()
GetPromptcallMethod("GetPrompt",[])string GetPrompt()
GetShortNamecallMethod("GetShortName",[])string GetShortName()

Members of the base class are inherited.

DisplayColumnAttribute class · extends Attribute

System.ComponentModel.DataAnnotations.DisplayColumnAttribute · assembly System.ComponentModel.Annotations

Constructors

new DisplayColumnAttribute(string displayColumn)
new DisplayColumnAttribute(string displayColumn, string sortColumn)
new DisplayColumnAttribute(string displayColumn, string sortColumn, bool sortDescending)

Ring: new DisplayColumnAttribute(args) uses one constructor; the others are chosen by the parameter names: new DisplayColumnAttribute().@New([ :param = value ]) or dnNew("DisplayColumnAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
DisplayColumnstringreado.DisplayColumn
SortColumnstringreado.SortColumn
SortDescendingboolreado.SortDescending

Members of the base class are inherited.

DisplayFormatAttribute class · extends Attribute

System.ComponentModel.DataAnnotations.DisplayFormatAttribute · assembly System.ComponentModel.Annotations

Constructors

new DisplayFormatAttribute()

Ring: new DisplayFormatAttribute(args) uses one constructor; the others are chosen by the parameter names: new DisplayFormatAttribute().@New([ :param = value ]) or dnNew("DisplayFormatAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
DataFormatStringstringread, writeo.DataFormatString o.DataFormatString = v
NullDisplayTextstringread, writeo.NullDisplayText o.NullDisplayText = v
ConvertEmptyStringToNullboolread, writeo.ConvertEmptyStringToNull o.ConvertEmptyStringToNull = v
ApplyFormatInEditModeboolread, writeo.ApplyFormatInEditMode o.ApplyFormatInEditMode = v
HtmlEncodeboolread, writeo.HtmlEncode o.HtmlEncode = v
NullDisplayTextResourceTypeTyperead, writeo.NullDisplayTextResourceType o.NullDisplayTextResourceType = v

Methods

MethodRing call.NET overloads
GetNullDisplayTextcallMethod("GetNullDisplayText",[])string GetNullDisplayText()

Members of the base class are inherited.

EditableAttribute class sealed · extends Attribute

System.ComponentModel.DataAnnotations.EditableAttribute · assembly System.ComponentModel.Annotations

Constructors

new EditableAttribute(bool allowEdit)

Ring: new EditableAttribute(args) uses one constructor; the others are chosen by the parameter names: new EditableAttribute().@New([ :param = value ]) or dnNew("EditableAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
AllowEditboolreado.AllowEdit
AllowInitialValueboolread, writeo.AllowInitialValue o.AllowInitialValue = v

Members of the base class are inherited.

EmailAddressAttribute class sealed · extends DataTypeAttribute

System.ComponentModel.DataAnnotations.EmailAddressAttribute · assembly System.ComponentModel.Annotations

Constructors

new EmailAddressAttribute()

Ring: new EmailAddressAttribute(args) uses one constructor; the others are chosen by the parameter names: new EmailAddressAttribute().@New([ :param = value ]) or dnNew("EmailAddressAttribute",[ :param = value ]).

Methods

MethodRing call.NET overloads
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

EnumDataTypeAttribute class sealed · extends DataTypeAttribute

System.ComponentModel.DataAnnotations.EnumDataTypeAttribute · assembly System.ComponentModel.Annotations

Constructors

new EnumDataTypeAttribute(Type enumType)

Ring: new EnumDataTypeAttribute(args) uses one constructor; the others are chosen by the parameter names: new EnumDataTypeAttribute().@New([ :param = value ]) or dnNew("EnumDataTypeAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
EnumTypeTypereado.EnumType

Methods

MethodRing call.NET overloads
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

FileExtensionsAttribute class sealed · extends DataTypeAttribute

System.ComponentModel.DataAnnotations.FileExtensionsAttribute · assembly System.ComponentModel.Annotations

Constructors

new FileExtensionsAttribute()

Ring: new FileExtensionsAttribute(args) uses one constructor; the others are chosen by the parameter names: new FileExtensionsAttribute().@New([ :param = value ]) or dnNew("FileExtensionsAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Extensionsstringread, writeo.Extensions o.Extensions = v

Methods

MethodRing call.NET overloads
FormatErrorMessagecallMethod("FormatErrorMessage",[p1])string FormatErrorMessage(string name)
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

IValidatableObject interface

System.ComponentModel.DataAnnotations.IValidatableObject · assembly System.ComponentModel.Annotations

Methods

MethodRing call.NET overloads
ValidatecallMethod("Validate",[p1])IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
KeyAttribute class sealed · extends Attribute

System.ComponentModel.DataAnnotations.KeyAttribute · assembly System.ComponentModel.Annotations

Constructors

new KeyAttribute()

Ring: new KeyAttribute(args) uses one constructor; the others are chosen by the parameter names: new KeyAttribute().@New([ :param = value ]) or dnNew("KeyAttribute",[ :param = value ]).

Members of the base class are inherited.

LengthAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.LengthAttribute · assembly System.ComponentModel.Annotations

Constructors

new LengthAttribute(int minimumLength, int maximumLength)

Ring: new LengthAttribute(args) uses one constructor; the others are chosen by the parameter names: new LengthAttribute().@New([ :param = value ]) or dnNew("LengthAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
MinimumLengthintreado.MinimumLength
MaximumLengthintreado.MaximumLength

Methods

MethodRing call.NET overloads
FormatErrorMessagecallMethod("FormatErrorMessage",[p1])string FormatErrorMessage(string name)
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

MaxLengthAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.MaxLengthAttribute · assembly System.ComponentModel.Annotations

Constructors

new MaxLengthAttribute(int length)
new MaxLengthAttribute()

Ring: new MaxLengthAttribute(args) uses one constructor; the others are chosen by the parameter names: new MaxLengthAttribute().@New([ :param = value ]) or dnNew("MaxLengthAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Lengthintreado.Length

Methods

MethodRing call.NET overloads
FormatErrorMessagecallMethod("FormatErrorMessage",[p1])string FormatErrorMessage(string name)
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

MetadataTypeAttribute class sealed · extends Attribute

System.ComponentModel.DataAnnotations.MetadataTypeAttribute · assembly System.ComponentModel.Annotations

Constructors

new MetadataTypeAttribute(Type metadataClassType)

Ring: new MetadataTypeAttribute(args) uses one constructor; the others are chosen by the parameter names: new MetadataTypeAttribute().@New([ :param = value ]) or dnNew("MetadataTypeAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
MetadataClassTypeTypereado.MetadataClassType

Members of the base class are inherited.

MinLengthAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.MinLengthAttribute · assembly System.ComponentModel.Annotations

Constructors

new MinLengthAttribute(int length)

Ring: new MinLengthAttribute(args) uses one constructor; the others are chosen by the parameter names: new MinLengthAttribute().@New([ :param = value ]) or dnNew("MinLengthAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Lengthintreado.Length

Methods

MethodRing call.NET overloads
FormatErrorMessagecallMethod("FormatErrorMessage",[p1])string FormatErrorMessage(string name)
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

PhoneAttribute class sealed · extends DataTypeAttribute

System.ComponentModel.DataAnnotations.PhoneAttribute · assembly System.ComponentModel.Annotations

Constructors

new PhoneAttribute()

Ring: new PhoneAttribute(args) uses one constructor; the others are chosen by the parameter names: new PhoneAttribute().@New([ :param = value ]) or dnNew("PhoneAttribute",[ :param = value ]).

Methods

MethodRing call.NET overloads
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

RangeAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.RangeAttribute · assembly System.ComponentModel.Annotations

Constructors

new RangeAttribute(int minimum, int maximum)
new RangeAttribute(double minimum, double maximum)
new RangeAttribute(Type type, string minimum, string maximum)

Ring: new RangeAttribute(args) uses one constructor; the others are chosen by the parameter names: new RangeAttribute().@New([ :param = value ]) or dnNew("RangeAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Minimumobjectreado.Minimum
Maximumobjectreado.Maximum
MinimumIsExclusiveboolread, writeo.MinimumIsExclusive o.MinimumIsExclusive = v
MaximumIsExclusiveboolread, writeo.MaximumIsExclusive o.MaximumIsExclusive = v
OperandTypeTypereado.OperandType
ParseLimitsInInvariantCultureboolread, writeo.ParseLimitsInInvariantCulture o.ParseLimitsInInvariantCulture = v
ConvertValueInInvariantCultureboolread, writeo.ConvertValueInInvariantCulture o.ConvertValueInInvariantCulture = v

Methods

MethodRing call.NET overloads
FormatErrorMessagecallMethod("FormatErrorMessage",[p1])string FormatErrorMessage(string name)
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

RegularExpressionAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.RegularExpressionAttribute · assembly System.ComponentModel.Annotations

Constructors

new RegularExpressionAttribute(string pattern)

Ring: new RegularExpressionAttribute(args) uses one constructor; the others are chosen by the parameter names: new RegularExpressionAttribute().@New([ :param = value ]) or dnNew("RegularExpressionAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
MatchTimeoutInMillisecondsintread, writeo.MatchTimeoutInMilliseconds o.MatchTimeoutInMilliseconds = v
MatchTimeoutTimeSpanreado.MatchTimeout
Patternstringreado.Pattern

Methods

MethodRing call.NET overloads
FormatErrorMessagecallMethod("FormatErrorMessage",[p1])string FormatErrorMessage(string name)
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

RequiredAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.RequiredAttribute · assembly System.ComponentModel.Annotations

Constructors

new RequiredAttribute()

Ring: new RequiredAttribute(args) uses one constructor; the others are chosen by the parameter names: new RequiredAttribute().@New([ :param = value ]) or dnNew("RequiredAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
AllowEmptyStringsboolread, writeo.AllowEmptyStrings o.AllowEmptyStrings = v

Methods

MethodRing call.NET overloads
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

ScaffoldColumnAttribute class · extends Attribute

System.ComponentModel.DataAnnotations.ScaffoldColumnAttribute · assembly System.ComponentModel.Annotations

Constructors

new ScaffoldColumnAttribute(bool scaffold)

Ring: new ScaffoldColumnAttribute(args) uses one constructor; the others are chosen by the parameter names: new ScaffoldColumnAttribute().@New([ :param = value ]) or dnNew("ScaffoldColumnAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Scaffoldboolreado.Scaffold

Members of the base class are inherited.

StringLengthAttribute class · extends ValidationAttribute

System.ComponentModel.DataAnnotations.StringLengthAttribute · assembly System.ComponentModel.Annotations

Constructors

new StringLengthAttribute(int maximumLength)

Ring: new StringLengthAttribute(args) uses one constructor; the others are chosen by the parameter names: new StringLengthAttribute().@New([ :param = value ]) or dnNew("StringLengthAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
MaximumLengthintreado.MaximumLength
MinimumLengthintread, writeo.MinimumLength o.MinimumLength = v

Methods

MethodRing call.NET overloads
FormatErrorMessagecallMethod("FormatErrorMessage",[p1])string FormatErrorMessage(string name)
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

TimestampAttribute class sealed · extends Attribute

System.ComponentModel.DataAnnotations.TimestampAttribute · assembly System.ComponentModel.Annotations

Constructors

new TimestampAttribute()

Ring: new TimestampAttribute(args) uses one constructor; the others are chosen by the parameter names: new TimestampAttribute().@New([ :param = value ]) or dnNew("TimestampAttribute",[ :param = value ]).

Members of the base class are inherited.

UIHintAttribute class · extends Attribute

System.ComponentModel.DataAnnotations.UIHintAttribute · assembly System.ComponentModel.Annotations

Constructors

new UIHintAttribute(string uiHint)
new UIHintAttribute(string uiHint, string presentationLayer)
new UIHintAttribute(string uiHint, string presentationLayer, object[] controlParameters)

Ring: new UIHintAttribute(args) uses one constructor; the others are chosen by the parameter names: new UIHintAttribute().@New([ :param = value ]) or dnNew("UIHintAttribute",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
UIHintstringreado.UIHint
PresentationLayerstringreado.PresentationLayer
ControlParametersIDictionary<string, object>reado.ControlParameters

Methods

MethodRing call.NET overloads
EqualsEquals(p1)bool Equals(object obj)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()

Members of the base class are inherited.

UrlAttribute class sealed · extends DataTypeAttribute

System.ComponentModel.DataAnnotations.UrlAttribute · assembly System.ComponentModel.Annotations

Constructors

new UrlAttribute()

Ring: new UrlAttribute(args) uses one constructor; the others are chosen by the parameter names: new UrlAttribute().@New([ :param = value ]) or dnNew("UrlAttribute",[ :param = value ]).

Methods

MethodRing call.NET overloads
IsValidIsValid(p1)bool IsValid(object value)

Members of the base class are inherited.

ValidationAttribute class abstract · extends Attribute

System.ComponentModel.DataAnnotations.ValidationAttribute · assembly System.ComponentModel.Annotations

Properties and fields

NameTypeAccessIn Ring
RequiresValidationContextboolreado.RequiresValidationContext
ErrorMessagestringread, writeo.ErrorMessage o.ErrorMessage = v
ErrorMessageResourceNamestringread, writeo.ErrorMessageResourceName o.ErrorMessageResourceName = v
ErrorMessageResourceTypeTyperead, writeo.ErrorMessageResourceType o.ErrorMessageResourceType = v

Methods

MethodRing call.NET overloads
FormatErrorMessagecallMethod("FormatErrorMessage",[p1])string FormatErrorMessage(string name)
GetValidationResultcallMethod("GetValidationResult",[p1,p2])ValidationResult GetValidationResult(object value, ValidationContext validationContext)
IsValidIsValid(p1)bool IsValid(object value)
ValidateValidate(p1,p2)void Validate(object value, string name)
void Validate(object value, ValidationContext validationContext)

Members of the base class are inherited.

ValidationContext class sealed

System.ComponentModel.DataAnnotations.ValidationContext · assembly System.ComponentModel.Annotations

Implements: IServiceProvider

Constructors

new ValidationContext(object instance)
new ValidationContext(object instance, IDictionary<object, object> items)
new ValidationContext(object instance, IServiceProvider serviceProvider, IDictionary<object, object> items)

Ring: new ValidationContext(args) uses one constructor; the others are chosen by the parameter names: new ValidationContext().@New([ :param = value ]) or dnNew("ValidationContext",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ObjectInstanceobjectreado.ObjectInstance
ObjectTypeTypereado.ObjectType
DisplayNamestringread, writeo.DisplayName o.DisplayName = v
MemberNamestringread, writeo.MemberName o.MemberName = v
ItemsIDictionary<object, object>reado.Items

Methods

MethodRing call.NET overloads
GetServicecallMethod("GetService",[p1])object GetService(Type serviceType)
InitializeServiceProviderInitializeServiceProvider(p1)void InitializeServiceProvider(Func<Type, object> serviceProvider)
ValidationException class · extends Exception

System.ComponentModel.DataAnnotations.ValidationException · assembly System.ComponentModel.Annotations

Implements: ISerializable

Constructors

new ValidationException(ValidationResult validationResult, ValidationAttribute validatingAttribute, object value)
new ValidationException(string errorMessage, ValidationAttribute validatingAttribute, object value)
new ValidationException()
new ValidationException(string message)
new ValidationException(string message, Exception innerException)

Ring: new ValidationException(args) uses one constructor; the others are chosen by the parameter names: new ValidationException().@New([ :param = value ]) or dnNew("ValidationException",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ValidationAttributeValidationAttributereado.ValidationAttribute
ValidationResultValidationResultreado.ValidationResult
Valueobjectreado.Value

Members of the base class are inherited.

Validator class static

System.ComponentModel.DataAnnotations.Validator · assembly System.ComponentModel.Annotations

Methods

MethodRing call.NET overloads
TryValidateObjectTryValidateObject([ :instance = …, :validationContext = …, :validationResults = … ])
TryValidateObject([ :instance = …, :validationContext = …, :validationResults = …, :validateAllProperties = … ])
static bool TryValidateObject(object instance, ValidationContext validationContext, ICollection<ValidationResult> validationResults)
static bool TryValidateObject(object instance, ValidationContext validationContext, ICollection<ValidationResult> validationResults, bool validateAllProperties)
TryValidatePropertyTryValidateProperty(p1,p2,p3)static bool TryValidateProperty(object value, ValidationContext validationContext, ICollection<ValidationResult> validationResults)
TryValidateValueTryValidateValue(p1,p2,p3,p4)static bool TryValidateValue(object value, ValidationContext validationContext, ICollection<ValidationResult> validationResults, IEnumerable<ValidationAttribute> validationAttributes)
ValidateObjectValidateObject([ :instance = …, :validationContext = … ])
ValidateObject([ :instance = …, :validationContext = …, :validateAllProperties = … ])
static void ValidateObject(object instance, ValidationContext validationContext)
static void ValidateObject(object instance, ValidationContext validationContext, bool validateAllProperties)
ValidatePropertyValidateProperty(p1,p2)static void ValidateProperty(object value, ValidationContext validationContext)
ValidateValueValidateValue(p1,p2,p3)static void ValidateValue(object value, ValidationContext validationContext, IEnumerable<ValidationAttribute> validationAttributes)