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 命名空间