Condividi tramite


Check Constructor (SqlSmoObject, String)

Initializes a new instance of the Check class, which is owned by the specified parent object and has the specified name.

Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

'Dichiarazione
Public Sub New ( _
    parent As SqlSmoObject, _
    name As String _
)
public Check (
    SqlSmoObject parent,
    string name
)
public:
Check (
    SqlSmoObject^ parent, 
    String^ name
)
public Check (
    SqlSmoObject parent, 
    String name
)
public function Check (
    parent : SqlSmoObject, 
    name : String
)

Parametri

  • parent
    A SqlSmoObject object value that specifies the parent object.
  • name
    A String value that specifies the name of the check constraint.

Osservazioni

Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.

Esempio

How to: Get and Set a Property in Visual Basic .NET

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

Check Class
Check Members
Microsoft.SqlServer.Management.Smo Namespace

Altre risorse

Working with Database Objects
Vincoli CHECK
CREATE TABLE (Transact-SQL)