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)