Column.DefaultConstraint Property
Gets or sets a default value for the column.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Синтаксис
'Декларация
Public ReadOnly Property DefaultConstraint As DefaultConstraint
public DefaultConstraint DefaultConstraint { get; }
public:
property DefaultConstraint^ DefaultConstraint {
DefaultConstraint^ get ();
}
/** @property */
public DefaultConstraint get_DefaultConstraint ()
public function get DefaultConstraint () : DefaultConstraint
Значение свойства
A DefaultConstraint value that specifies a default value for the column.
Замечания
The DefaultConstraint property specifies a default text value for the column. When no value is supplied by the user the default text value is inserted into a row in the table. The text value can be set by setting the Text property of the DefaultConstraint object that is referenced by the DefaultConstraint property.
Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.
Пример
How to: Create, Alter, and Remove a Table in Visual Basic .NET
Синхронизация потоков
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Платформы
Платформы разработки
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
Целевые платформы
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
См. также
Справочник
Column Class
Column Members
Microsoft.SqlServer.Management.Smo Namespace
Другие ресурсы
CREATE TABLE (Transact-SQL)
Ограничения
Working with Database Objects