Partilhar 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 _
)
public Check (
    SqlSmoObject parent,
    string name
)
public:
Check (
    SqlSmoObject^ parent, 
    String^ name
)
public Check (
    SqlSmoObject parent, 
    String name
)
public function Check (
    parent : SqlSmoObject, 
    name : String
)

Parameters

  • parent
    A SqlSmoObject object value that specifies the parent object.
  • name
    A String value that specifies the name of the check constraint.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Example

How to: Get and Set a Property in Visual Basic .NET

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

Check Class
Check Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Working with Database Objects
CHECK Constraints
CREATE TABLE (Transact-SQL)