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


Класс SmoCollectionBase

The SmoCollectionBase class is a base class that is used in the construction of SMO collection classes and contains members that are common to them.

Иерархия наследования

System.Object
  Microsoft.SqlServer.Management.Smo.AbstractCollectionBase
    Microsoft.SqlServer.Management.Smo.SmoCollectionBase
      Microsoft.SqlServer.Management.Smo.ArrayListCollectionBase
      Microsoft.SqlServer.Management.Smo.SortedListCollectionBase

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

Синтаксис

'Декларация
Public MustInherit Class SmoCollectionBase _
    Inherits AbstractCollectionBase _
    Implements ICollection, IEnumerable
'Применение
Dim instance As SmoCollectionBase
public abstract class SmoCollectionBase : AbstractCollectionBase, 
    ICollection, IEnumerable
public ref class SmoCollectionBase abstract : public AbstractCollectionBase, 
    ICollection, IEnumerable
[<AbstractClassAttribute>]
type SmoCollectionBase =  
    class 
        inherit AbstractCollectionBase 
        interface ICollection 
        interface IEnumerable 
    end
public abstract class SmoCollectionBase extends AbstractCollectionBase implements ICollection, IEnumerable

Тип SmoCollectionBase обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство Count Gets the number of objects in the referenced collection.
Открытое свойство IsSynchronized Gets the Boolean property value that specifies whether access to the collection is synchronized and therefore thread-safe.
Открытое свойство SyncRoot Gets an object that can be used to synchronize access to the collection.

В начало

Методы

  Имя Описание
Защищенный метод AddExisting Adds an object to the collection. (Производный от AbstractCollectionBase.)
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Защищенный метод GetCollectionElementType Gets the Collection Element Type.
Открытый метод GetEnumerator Returns an IEnumerator interface that allows you to iterate through the objects in the collection.
Открытый метод GetHashCode (Производный от Object.)
Защищенный метод GetItemById(Int32) Extracts a member from the referenced collection using a system-defined, unique identifier.
Защищенный метод GetItemById(Int32, String) Extracts a member from the referenced collection using a system-defined, unique identifier and name.
Защищенный метод GetObjectByIndex Extracts a member from the referenced collection using a system-defined, unique identifier.
Открытый метод GetType (Производный от Object.)
Защищенный метод ImplAddExisting Adds an existing object to the collection. (Переопределяет AbstractCollectionBase.ImplAddExisting(SqlSmoObject).)
Защищенный метод InitializeChildCollection() Initializes the child collections of the referenced collection.
Защищенный метод InitializeChildCollection(Boolean) Initializes the child collections of the referenced collection with the option to refresh the properties of the referenced collection.
Защищенный метод InitInnerCollection Initializes the collection.
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод Refresh() Refreshes the referenced collection.
Открытый метод Refresh(Boolean) Refreshes the referenced collection with the option to refresh child objects of the referenced collection.
Открытый метод ToString (Производный от Object.)
Защищенный метод ValidateParentObject Validates the parent object exists.

В начало

Поля

  Имя Описание
Защищенное поле initialized This value supports the SMO infrastructure and is not intended to be used directly from your code. (Производный от AbstractCollectionBase.)

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытый метод ICollection.CopyTo Copies the elements from an instance to an array beginning at the index indicated.

В начало

Замечания

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Примеры

Использование коллекций

Безопасность многопоточности

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

См. также

Справочник

Пространство имен Microsoft.SqlServer.Management.Smo