共用方式為


Check.Rename 方法

Marks the foreign key to be dropped next time its parent Table object is altered by the Alter method.

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

語法

'宣告
Public Sub Rename ( _
    newname As String _
)
'用途
Dim instance As Check 
Dim newname As String

instance.Rename(newname)
public void Rename(
    string newname
)
public:
virtual void Rename(
    String^ newname
) sealed
abstract Rename : 
        newname:string -> unit  
override Rename : 
        newname:string -> unit
public final function Rename(
    newname : String
)

參數

  • newname
    型別:System.String
    A String value that specifies the new name of the check constraint.

實作

IRenamable.Rename(String)

備註

[!附註]

For check constraints based on the UserDefinedTableType object this method generates an exception because user-defined data types cannot be modified.

範例

呼叫方法

請參閱

參考

Check 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

使用資料庫物件

CHECK 條件約束

CREATE TABLE (Transact-SQL)