共用方式為


UserDefinedDataType.BindRule 方法 (String, String, Boolean)

Binds a default to the user-defined data type.

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

語法

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

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

參數

  • bindColumns
    型別:System.Boolean
    A Boolean value that specifies whether the rule is bound to the user-defined data type if it is already bound to a column.If True, the rule is bound to the user-defined data type.If False, the rule is not bound to the user-defined data type.

範例

使用資料類型

請參閱

參考

UserDefinedDataType 類別

BindRule 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

資料類型 (Database Engine)

CREATE TYPE (Transact-SQL)