SmoCollectionBase SmoCollectionBase SmoCollectionBase Class

Definition

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

public ref class SmoCollectionBase abstract : Microsoft::SqlServer::Management::Smo::AbstractCollectionBase, System::Collections::ICollection
public abstract class SmoCollectionBase : Microsoft.SqlServer.Management.Smo.AbstractCollectionBase, System.Collections.ICollection
Public MustInherit Class SmoCollectionBase
Inherits AbstractCollectionBase
Implements ICollection
Inheritance
Derived
Implements

Examples

Using Collections

Remarks

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

Properties

Count Count Count

Gets the number of objects in the referenced collection.

IsSynchronized IsSynchronized IsSynchronized

Gets the Boolean property value that specifies whether access to the collection is synchronized and therefore thread-safe.

SyncRoot SyncRoot SyncRoot

Gets an object that can be used to synchronize access to the collection.

Methods

AddExisting(SqlSmoObject) AddExisting(SqlSmoObject) AddExisting(SqlSmoObject)

Adds an object to the collection.

(Inherited from AbstractCollectionBase)
GetCollectionElementType() GetCollectionElementType() GetCollectionElementType()

Gets the Collection Element Type.

GetEnumerator() GetEnumerator() GetEnumerator()

Returns an IEnumerator interface that allows you to iterate through the objects in the collection.

GetItemById(Int32) GetItemById(Int32) GetItemById(Int32)

Extracts a member from the referenced collection using a system-defined, unique identifier.

GetItemById(Int32, String) GetItemById(Int32, String) GetItemById(Int32, String)

Extracts a member from the referenced collection using a system-defined, unique identifier and name.

GetObjectByIndex(Int32) GetObjectByIndex(Int32) GetObjectByIndex(Int32)

Extracts a member from the referenced collection using a system-defined, unique identifier.

ImplAddExisting(SqlSmoObject) ImplAddExisting(SqlSmoObject) ImplAddExisting(SqlSmoObject)

Adds an existing object to the collection.

InitializeChildCollection() InitializeChildCollection() InitializeChildCollection()

Initializes the child collections of the referenced collection.

InitializeChildCollection(Boolean) InitializeChildCollection(Boolean) InitializeChildCollection(Boolean)

Initializes the child collections of the referenced collection with the option to refresh the properties of the referenced collection.

InitInnerCollection() InitInnerCollection() InitInnerCollection()

Initializes the collection.

Refresh() Refresh() Refresh()

Refreshes the referenced collection.

Refresh(Boolean) Refresh(Boolean) Refresh(Boolean)

Refreshes the referenced collection with the option to refresh child objects of the referenced collection.

ValidateParentObject(SqlSmoObject) ValidateParentObject(SqlSmoObject) ValidateParentObject(SqlSmoObject)

Validates the parent object exists.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

Copies the elements from an instance to an array beginning at the index indicated.

Fields

initialized initialized initialized

This value supports the SMO infrastructure and is not intended to be used directly from your code.

(Inherited from AbstractCollectionBase)

Applies to