Partager via


View Constructor (Database, String, String)

Initializes a new instance of the View object 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 View (
    Database database,
    string name,
    string schema
)
public:
View (
    Database^ database, 
    String^ name, 
    String^ schema
)
public View (
    Database database, 
    String name, 
    String schema
)
public function View (
    database : Database, 
    name : String, 
    schema : String
)

Paramètres

  • database
    A Database object value that specifies the database on which to create the view.
  • name
    A String value that specifies the schema for the view.
  • schema
    A String value that specifies the name of the view.

Exemple

How to: Create, Alter, and Remove a View 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

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

Autres ressources

Conception et mise en œuvre de vues
Creating, Altering, and Removing Views
CREATE VIEW (Transact-SQL)