Partilhar via


Método UserDefinedDataType.BindRule (String, String, Boolean)

Binds a default to the user-defined data type.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub BindRule ( _
    ruleSchema As String, _
    ruleName As String, _
    bindColumns As Boolean _
)
'Uso
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
)

Parâmetros

  • bindColumns
    Tipo: 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.

Exemplos

Trabalhando com tipos de dados

Consulte também

Referência

UserDefinedDataType Classe

Sobrecarregado BindRule

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Tipos de dados (Mecanismo de Banco de Dados)

CREATE TYPE (Transact-SQL)