Column.AddDefaultConstraint 方法 (String)
Adds a default constraint to the column.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Function AddDefaultConstraint ( _
name As String _
) As DefaultConstraint
'用途
Dim instance As Column
Dim name As String
Dim returnValue As DefaultConstraint
returnValue = instance.AddDefaultConstraint(name)
public DefaultConstraint AddDefaultConstraint(
string name
)
public:
DefaultConstraint^ AddDefaultConstraint(
String^ name
)
member AddDefaultConstraint :
name:string -> DefaultConstraint
public function AddDefaultConstraint(
name : String
) : DefaultConstraint
參數
- name
型別:System.String
A String value that specifies the default constraint to add to the column.
傳回值
型別:Microsoft.SqlServer.Management.Smo.DefaultConstraint
A DefaultConstraint object that specifies the default constraint added to the column.
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間