Compartir a través de


Check.Rename Método

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub Rename ( _
    newname As String _
)
'Uso
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
)

Parámetros

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

Implementa

IRenamable.Rename(String)

Comentarios

[!NOTA]

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

Ejemplos

Llamar a métodos

Vea también

Referencia

Check Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Trabajar con objetos de bases de datos

Restricciones CHECK

CREATE TABLE (Transact-SQL)