Поделиться через


Класс ViewCollection

The ViewCollection class represents a collection of View objects that represent all the views defined on a table.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public NotInheritable Class ViewCollection _
    Inherits SchemaCollectionBase
'Применение
Dim instance As ViewCollection
public sealed class ViewCollection : SchemaCollectionBase
public ref class ViewCollection sealed : public SchemaCollectionBase
[<SealedAttribute>]
type ViewCollection =  
    class
        inherit SchemaCollectionBase
    end
public final class ViewCollection extends SchemaCollectionBase

Замечания

A ViewCollection object can be used to gain access to a set of views. You can use the Item property to return a specific View object.

Thread Safety

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.

Потоковая защита

Все открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность элементов экземпляров не гарантируется.