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
| Name | Type | Access | In Ring |
|---|---|---|---|
Values | object[] | read | o.Values |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
IsValid | IsValid(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
| Method | Ring call | .NET overloads |
|---|---|---|
GetTypeDescriptor | GetTypeDescriptor([ :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
| Method | Ring call | .NET overloads |
|---|---|---|
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
OtherProperty | string | read | o.OtherProperty |
OtherPropertyDisplayName | string | read | o.OtherPropertyDisplayName |
RequiresValidationContext | bool | read | o.getRequiresValidationContext() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FormatErrorMessage | callMethod("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
| Method | Ring call | .NET overloads |
|---|---|---|
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
ValidatorType | Type | read | o.ValidatorType |
TypeId | object | read | o.getTypeId() |
Method | string | read | o.Method |
RequiresValidationContext | bool | read | o.getRequiresValidationContext() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FormatErrorMessage | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
MemberNames | IEnumerable<string> | read | o.MemberNames |
ErrorMessage | string | read, write | o.ErrorMessage o.ErrorMessage = v |
Success | ValidationResult | read · static | o.Success |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ToString | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
DataType | DataType | read | o.DataType |
CustomDataType | string | read | o.CustomDataType |
DisplayFormat | DisplayFormatAttribute | read | o.DisplayFormat |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetDataTypeName | callMethod("GetDataTypeName",[]) | string GetDataTypeName() |
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Values | object[] | read | o.Values |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
ShortName | string | read, write | o.ShortName o.ShortName = v |
Name | string | read, write | o.Name o.Name = v |
Description | string | read, write | o.Description o.Description = v |
Prompt | string | read, write | o.Prompt o.Prompt = v |
GroupName | string | read, write | o.GroupName o.GroupName = v |
ResourceType | Type | read, write | o.ResourceType o.ResourceType = v |
AutoGenerateField | bool | read, write | o.AutoGenerateField o.AutoGenerateField = v |
AutoGenerateFilter | bool | read, write | o.AutoGenerateFilter o.AutoGenerateFilter = v |
Order | int | read, write | o.Order o.Order = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetAutoGenerateField | callMethod("GetAutoGenerateField",[]) | bool? GetAutoGenerateField() |
GetAutoGenerateFilter | callMethod("GetAutoGenerateFilter",[]) | bool? GetAutoGenerateFilter() |
GetDescription | callMethod("GetDescription",[]) | string GetDescription() |
GetGroupName | callMethod("GetGroupName",[]) | string GetGroupName() |
GetName | callMethod("GetName",[]) | string GetName() |
GetOrder | callMethod("GetOrder",[]) | int? GetOrder() |
GetPrompt | callMethod("GetPrompt",[]) | string GetPrompt() |
GetShortName | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
DisplayColumn | string | read | o.DisplayColumn |
SortColumn | string | read | o.SortColumn |
SortDescending | bool | read | o.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
| Name | Type | Access | In Ring |
|---|---|---|---|
DataFormatString | string | read, write | o.DataFormatString o.DataFormatString = v |
NullDisplayText | string | read, write | o.NullDisplayText o.NullDisplayText = v |
ConvertEmptyStringToNull | bool | read, write | o.ConvertEmptyStringToNull o.ConvertEmptyStringToNull = v |
ApplyFormatInEditMode | bool | read, write | o.ApplyFormatInEditMode o.ApplyFormatInEditMode = v |
HtmlEncode | bool | read, write | o.HtmlEncode o.HtmlEncode = v |
NullDisplayTextResourceType | Type | read, write | o.NullDisplayTextResourceType o.NullDisplayTextResourceType = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetNullDisplayText | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
AllowEdit | bool | read | o.AllowEdit |
AllowInitialValue | bool | read, write | o.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
| Method | Ring call | .NET overloads |
|---|---|---|
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
EnumType | Type | read | o.EnumType |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Extensions | string | read, write | o.Extensions o.Extensions = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FormatErrorMessage | callMethod("FormatErrorMessage",[p1]) | string FormatErrorMessage(string name) |
IsValid | IsValid(p1) | bool IsValid(object value) |
Members of the base class are inherited.
IValidatableObject interface
System.ComponentModel.DataAnnotations.IValidatableObject · assembly System.ComponentModel.Annotations
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Validate | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
MinimumLength | int | read | o.MinimumLength |
MaximumLength | int | read | o.MaximumLength |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FormatErrorMessage | callMethod("FormatErrorMessage",[p1]) | string FormatErrorMessage(string name) |
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Length | int | read | o.Length |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FormatErrorMessage | callMethod("FormatErrorMessage",[p1]) | string FormatErrorMessage(string name) |
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
MetadataClassType | Type | read | o.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
| Name | Type | Access | In Ring |
|---|---|---|---|
Length | int | read | o.Length |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FormatErrorMessage | callMethod("FormatErrorMessage",[p1]) | string FormatErrorMessage(string name) |
IsValid | IsValid(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
| Method | Ring call | .NET overloads |
|---|---|---|
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Minimum | object | read | o.Minimum |
Maximum | object | read | o.Maximum |
MinimumIsExclusive | bool | read, write | o.MinimumIsExclusive o.MinimumIsExclusive = v |
MaximumIsExclusive | bool | read, write | o.MaximumIsExclusive o.MaximumIsExclusive = v |
OperandType | Type | read | o.OperandType |
ParseLimitsInInvariantCulture | bool | read, write | o.ParseLimitsInInvariantCulture o.ParseLimitsInInvariantCulture = v |
ConvertValueInInvariantCulture | bool | read, write | o.ConvertValueInInvariantCulture o.ConvertValueInInvariantCulture = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FormatErrorMessage | callMethod("FormatErrorMessage",[p1]) | string FormatErrorMessage(string name) |
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
MatchTimeoutInMilliseconds | int | read, write | o.MatchTimeoutInMilliseconds o.MatchTimeoutInMilliseconds = v |
MatchTimeout | TimeSpan | read | o.MatchTimeout |
Pattern | string | read | o.Pattern |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FormatErrorMessage | callMethod("FormatErrorMessage",[p1]) | string FormatErrorMessage(string name) |
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
AllowEmptyStrings | bool | read, write | o.AllowEmptyStrings o.AllowEmptyStrings = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Scaffold | bool | read | o.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
| Name | Type | Access | In Ring |
|---|---|---|---|
MaximumLength | int | read | o.MaximumLength |
MinimumLength | int | read, write | o.MinimumLength o.MinimumLength = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FormatErrorMessage | callMethod("FormatErrorMessage",[p1]) | string FormatErrorMessage(string name) |
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
UIHint | string | read | o.UIHint |
PresentationLayer | string | read | o.PresentationLayer |
ControlParameters | IDictionary<string, object> | read | o.ControlParameters |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object obj) |
GetHashCode | callMethod("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
| Method | Ring call | .NET overloads |
|---|---|---|
IsValid | IsValid(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
| Name | Type | Access | In Ring |
|---|---|---|---|
RequiresValidationContext | bool | read | o.RequiresValidationContext |
ErrorMessage | string | read, write | o.ErrorMessage o.ErrorMessage = v |
ErrorMessageResourceName | string | read, write | o.ErrorMessageResourceName o.ErrorMessageResourceName = v |
ErrorMessageResourceType | Type | read, write | o.ErrorMessageResourceType o.ErrorMessageResourceType = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FormatErrorMessage | callMethod("FormatErrorMessage",[p1]) | string FormatErrorMessage(string name) |
GetValidationResult | callMethod("GetValidationResult",[p1,p2]) | ValidationResult GetValidationResult(object value, ValidationContext validationContext) |
IsValid | IsValid(p1) | bool IsValid(object value) |
Validate | Validate(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
| Name | Type | Access | In Ring |
|---|---|---|---|
ObjectInstance | object | read | o.ObjectInstance |
ObjectType | Type | read | o.ObjectType |
DisplayName | string | read, write | o.DisplayName o.DisplayName = v |
MemberName | string | read, write | o.MemberName o.MemberName = v |
Items | IDictionary<object, object> | read | o.Items |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetService | callMethod("GetService",[p1]) | object GetService(Type serviceType) |
InitializeServiceProvider | InitializeServiceProvider(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
| Name | Type | Access | In Ring |
|---|---|---|---|
ValidationAttribute | ValidationAttribute | read | o.ValidationAttribute |
ValidationResult | ValidationResult | read | o.ValidationResult |
Value | object | read | o.Value |
Members of the base class are inherited.
Validator class static
System.ComponentModel.DataAnnotations.Validator · assembly System.ComponentModel.Annotations
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
TryValidateObject | TryValidateObject([ :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) |
TryValidateProperty | TryValidateProperty(p1,p2,p3) | static bool TryValidateProperty(object value, ValidationContext validationContext, ICollection<ValidationResult> validationResults) |
TryValidateValue | TryValidateValue(p1,p2,p3,p4) | static bool TryValidateValue(object value, ValidationContext validationContext, ICollection<ValidationResult> validationResults, IEnumerable<ValidationAttribute> validationAttributes) |
ValidateObject | ValidateObject([ :instance = …, :validationContext = … ])ValidateObject([ :instance = …, :validationContext = …, :validateAllProperties = … ]) | static void ValidateObject(object instance, ValidationContext validationContext)static void ValidateObject(object instance, ValidationContext validationContext, bool validateAllProperties) |
ValidateProperty | ValidateProperty(p1,p2) | static void ValidateProperty(object value, ValidationContext validationContext) |
ValidateValue | ValidateValue(p1,p2,p3) | static void ValidateValue(object value, ValidationContext validationContext, IEnumerable<ValidationAttribute> validationAttributes) |