SmoCollectionBase Class
Collapse the table of content
Expand the table of content

SmoCollectionBase Class

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.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public abstract class SmoCollectionBase : AbstractCollectionBase, 
	ICollection, IEnumerable

The SmoCollectionBase type exposes the following members.

Public propertyCountGets the number of objects in the referenced collection.
Public propertyIsSynchronizedGets the Boolean property value that specifies whether access to the collection is synchronized and therefore thread-safe.
Public propertySyncRootGets an object that can be used to synchronize access to the collection.

Protected methodAddExistingAdds an object to the collection. (Inherited from AbstractCollectionBase.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Protected methodGetCollectionElementTypeGets the Collection Element Type.
Public methodGetEnumeratorReturns an IEnumerator interface that allows you to iterate through the objects in the collection.
Public methodGetHashCode (Inherited from Object.)
Protected methodGetItemById(Int32)Extracts a member from the referenced collection using a system-defined, unique identifier.
Protected methodGetItemById(Int32, String)Extracts a member from the referenced collection using a system-defined, unique identifier and name.
Protected methodGetObjectByIndexExtracts a member from the referenced collection using a system-defined, unique identifier.
Public methodGetType (Inherited from Object.)
Protected methodImplAddExistingAdds an existing object to the collection. (Overrides AbstractCollectionBase.ImplAddExisting(SqlSmoObject).)
Protected methodInitializeChildCollection()Initializes the child collections of the referenced collection.
Protected methodInitializeChildCollection(Boolean)Initializes the child collections of the referenced collection with the option to refresh the properties of the referenced collection.
Protected methodInitInnerCollectionInitializes the collection.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRefresh()Refreshes the referenced collection.
Public methodRefresh(Boolean)Refreshes the referenced collection with the option to refresh child objects of the referenced collection.
Public methodToString (Inherited from Object.)
Protected methodValidateParentObjectValidates the parent object exists.

Protected fieldinitializedThis value supports the SMO infrastructure and is not intended to be used directly from your code. (Inherited from AbstractCollectionBase.)

Explicit interface implemetationPrivate methodICollection.CopyToCopies the elements from an instance to an array beginning at the index indicated.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2016 Microsoft