共用方式為


Check 建構函式 (SqlSmoObject, String)

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub New ( _
    parent As SqlSmoObject, _
    name As String _
)
'用途
Dim parent As SqlSmoObject 
Dim name As String 

Dim instance As New Check(parent, _
    name)
public Check(
    SqlSmoObject parent,
    string name
)
public:
Check(
    SqlSmoObject^ parent, 
    String^ name
)
new : 
        parent:SqlSmoObject * 
        name:string -> Check
public function Check(
    parent : SqlSmoObject, 
    name : String
)

參數

範例

設定屬性

請參閱

參考

Check 類別

Check 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

使用資料庫物件

CHECK 條件約束

CREATE TABLE (Transact-SQL)