Share via


Check.Parent Property

Gets the SqlSmoObject object that is the parent of the Check object.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

[SfcParentAttribute("UserDefinedTableType")]
[SfcParentAttribute("UserDefinedFunction")]
[SfcParentAttribute("Table")]
[SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)]
public SqlSmoObject Parent { get; set; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.SqlSmoObject
A SqlSmoObject object value that specifies the parent of the Check object.

Remarks

The check constraint is defined on a column or a table. The parent object specifies the column or the table on which the check constraint is defined.

Examples

Setting Properties

See Also

Reference

Check Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Working with Database Objects

CHECK Constraints

CREATE TABLE (Transact-SQL)