C# Класс System.Data.UniqueConstraint

Наследование: Constraint
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AssertConstraintAndKeyIndexes void
CanBeRemovedFromCollection bool
CanEnableConstraint bool
CheckCanAddToCollection void
CheckConstraint void
CheckState void
Clone Constraint
Clone Constraint
Clone UniqueConstraint
ConstraintIndexClear void
ConstraintIndexInitialize void
ContainsColumn bool
Create void
IsConstraintViolated bool
NonVirtualCheckState void
UniqueConstraint System.Diagnostics

Открытые методы

Метод Описание
Equals ( object key2 ) : bool

Compares this constraint to a second to determine if both are identical.

GetHashCode ( ) : int
UniqueConstraint ( DataColumn column ) : System.Diagnostics

Initializes a new instance of the with the specified .

UniqueConstraint ( DataColumn column, bool isPrimaryKey ) : System.Diagnostics

Initializes a new instance of the with the specified .

UniqueConstraint ( string name, DataColumn column ) : System.Diagnostics

Initializes a new instance of the with the specified name and .

UniqueConstraint ( string name, DataColumn column, bool isPrimaryKey ) : System.Diagnostics

Initializes a new instance of the with the specified name and .

Приватные методы

Метод Описание
AssertConstraintAndKeyIndexes ( ) : void
CanBeRemovedFromCollection ( ConstraintCollection constraints, bool fThrowException ) : bool
CanEnableConstraint ( ) : bool
CheckCanAddToCollection ( ConstraintCollection constraints ) : void
CheckConstraint ( DataRow row, DataRowAction action ) : void
CheckState ( ) : void
Clone ( DataSet destination ) : Constraint
Clone ( DataSet destination, bool ignorNSforTableLookup ) : Constraint
Clone ( DataTable table ) : UniqueConstraint
ConstraintIndexClear ( ) : void
ConstraintIndexInitialize ( ) : void
ContainsColumn ( DataColumn column ) : bool
Create ( string constraintName, DataColumn columns ) : void
IsConstraintViolated ( ) : bool
NonVirtualCheckState ( ) : void
UniqueConstraint ( string name, string columnNames, bool isPrimaryKey ) : System.Diagnostics

Описание методов

Equals() публичный метод

Compares this constraint to a second to determine if both are identical.
public Equals ( object key2 ) : bool
key2 object
Результат bool

GetHashCode() публичный метод

public GetHashCode ( ) : int
Результат int

UniqueConstraint() публичный метод

Initializes a new instance of the with the specified .
public UniqueConstraint ( DataColumn column ) : System.Diagnostics
column DataColumn
Результат System.Diagnostics

UniqueConstraint() публичный метод

Initializes a new instance of the with the specified .
public UniqueConstraint ( DataColumn column, bool isPrimaryKey ) : System.Diagnostics
column DataColumn
isPrimaryKey bool
Результат System.Diagnostics

UniqueConstraint() публичный метод

Initializes a new instance of the with the specified name and .
public UniqueConstraint ( string name, DataColumn column ) : System.Diagnostics
name string
column DataColumn
Результат System.Diagnostics

UniqueConstraint() публичный метод

Initializes a new instance of the with the specified name and .
public UniqueConstraint ( string name, DataColumn column, bool isPrimaryKey ) : System.Diagnostics
name string
column DataColumn
isPrimaryKey bool
Результат System.Diagnostics