TextDataProperty

TextDataProperty implements a data property attribute for a text data property.

Namespace:
Inetdev.Data
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Data.GenericDataProperty

Constructors

TextDataProperty

Creates a new instance of TextDataProperty.

Signature:
public Void TextDataProperty(name, type)
Parameters
Name Type Summary
name String The name of the property.
type DbType The type of the property.

Properties

InvalidChars

Gets or sets a list of character that are invalid for this property.

Signature:
public Char[] InvalidChars { get; set; }

MaxLength

Gets or sets the maximum length of the text property.

Signature:
public Int32 MaxLength { get; set; }

MinLength

Gets or sets the minimum length of the text property.

Signature:
public Int32 MinLength { get; set; }

Methods

Validate

Validates the specified value to see if it is a valid value for the property.

Signature:
public Void Validate(value, action)
Remarks

Throwns validation exceptions if the value is not valid.

Parameters
Name Type Summary
value Object The value to validate.
action DataAction The current action that is performing.