Show / Hide Table of Contents

Constructor CheckConstraintAttribute

| Improve this Doc View Source

CheckConstraintAttribute(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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest