Share via


Check Constructor (SqlSmoObject, String)

Initializes a new instance of the Check class, which is owned by the specified parent object and has the specified name.

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

Syntax

'Declaration
Public Sub New ( _
    parent As SqlSmoObject, _
    name As String _
)
'Usage
Dim parent As SqlSmoObject 
Dim name As String 

Dim instance As New Check(parent, _
    name)

Parameters

Examples

Setting Properties

See Also

Reference

Check Class

Check Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Working with Database Objects

CHECK Constraints

CREATE TABLE (Transact-SQL)