Constructor CheckConstraintAttribute
| Improve this Doc View SourceCheckConstraintAttribute(String, String)
Initializes a new instance of CheckConstraintAttribute, by name and error message.
Declaration
public CheckConstraintAttribute(string name, string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the check constraint. |
System.String | message | Error message of the check constraint. |
CheckConstraintAttribute(String, Type, String)
Initializes a new instance of CheckConstraintAttribute, by name and localized error message.
Declaration
public CheckConstraintAttribute(string name, Type messageResourceType, string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the check constraint. |
System.Type | messageResourceType | Resource type which contains the localized error message. |
System.String | message | Property name of the resource type to retrieve the error message. |