Database.Views Property
SQL Server 2008
Namespace:
Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, typeof(View))] public ViewCollection Views { get; }
Property Value
Type: Microsoft.SqlServer.Management.Smo.ViewCollectionA ViewCollection object that represents all the views defined on the database.
Specific views can be referenced by using this collection by specifying the name of the view. To add a new view to the collection, call the view constructor View.
