Partager via


Default Constructor (Database, String, String)

Initializes a new instance of the Default class on the specified database and with the specified name and schema.

Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    database As Database, _
    name As String, _
    schema As String _
)
public Default (
    Database database,
    string name,
    string schema
)
public:
Default (
    Database^ database, 
    String^ name, 
    String^ schema
)
public Default (
    Database database, 
    String name, 
    String schema
)
public function Default (
    database : Database, 
    name : String, 
    schema : String
)

Paramètres

  • database
    A Database object that specifies the database that owns the Default object.
  • name
    A string value that specifies the name of the Default object.
  • schema
    A String value that specifies the schema in which to create the Default object.

Notes

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Exemple

How to: Create, Alter, and Remove a Default in Visual Basic .NET

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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

Autres ressources

Creating, Altering, and Removing Defaults
Valeurs par défaut
CREATE DEFAULT (Transact-SQL)