共用方式為


UserDefinedDataType.BindDefault 方法 (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 BindDefault ( _
    defaultSchema As String, _
    defaultName As String, _
    bindColumns As Boolean _
)
'用途
Dim instance As UserDefinedDataType 
Dim defaultSchema As String 
Dim defaultName As String 
Dim bindColumns As Boolean

instance.BindDefault(defaultSchema, defaultName, _
    bindColumns)
public void BindDefault(
    string defaultSchema,
    string defaultName,
    bool bindColumns
)
public:
void BindDefault(
    String^ defaultSchema, 
    String^ defaultName, 
    bool bindColumns
)
member BindDefault : 
        defaultSchema:string * 
        defaultName:string * 
        bindColumns:bool -> unit
public function BindDefault(
    defaultSchema : String, 
    defaultName : String, 
    bindColumns : boolean
)

參數

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

範例

使用資料類型

請參閱

參考

UserDefinedDataType 類別

BindDefault 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

資料類型 (Database Engine)

CREATE TYPE (Transact-SQL)