共用方式為


Column.BindRule 方法

Binds a rule to the column.

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

語法

'宣告
Public Sub BindRule ( _
    ruleSchema As String, _
    ruleName As String _
)
'用途
Dim instance As Column 
Dim ruleSchema As String 
Dim ruleName As String

instance.BindRule(ruleSchema, ruleName)
public void BindRule(
    string ruleSchema,
    string ruleName
)
public:
void BindRule(
    String^ ruleSchema, 
    String^ ruleName
)
member BindRule : 
        ruleSchema:string * 
        ruleName:string -> unit
public function BindRule(
    ruleSchema : String, 
    ruleName : String
)

參數

備註

[!附註]

Columns based on the UserDefinedTableType object cannot be modified and this method generates an exception.

範例

使用資料庫物件

請參閱

參考

Column 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

sp_bindrule (Transact-SQL)