ModelComponentCollection Class

Definition

Contains a collection of ModelComponent objects.

[System.Runtime.InteropServices.Guid("74BB3312-550A-4f1f-BECF-80422AC163C6")]
public abstract class ModelComponentCollection : Microsoft.AnalysisServices.Hosting.IOnDemandLoadableCollection, Microsoft.AnalysisServices.IModelComponentCollection, System.Collections.IList
[<System.Runtime.InteropServices.Guid("74BB3312-550A-4f1f-BECF-80422AC163C6")>]
type ModelComponentCollection = class
    interface IModelComponentCollection
    interface ICollection
    interface IEnumerable
    interface IList
    interface IOnDemandLoadableCollection
Public MustInherit Class ModelComponentCollection
Implements IList, IModelComponentCollection, IOnDemandLoadableCollection
Inheritance
ModelComponentCollection
Derived
Attributes
Implements

Constructors

ModelComponentCollection(IModelComponent)

Initializes a new instance of the ModelComponentCollection class.

Properties

Count

Gets the number of ModelComponent objects in the ModelComponentCollection.

DemandLoadingService

Gets the demand loading service for the collection.

IsFixedSize

Gets a value indicating whether the ModelComponentCollection has a fixed size.

IsReadOnly

Gets a value indicating whether the ModelComponentCollection is read-only.

IsSynchronized

Gets a value indicating whether access to the ModelComponentCollection is synchronized (thread-safe).

Item[Int32]

Gets the IModelComponent at the specified index.

ItemsType

Gets the Type of objects that can be contained by the ModelComponentCollection.

Parent

Gets the parent IModelComponent of the IModelComponentCollection.

Preloadable

Gets a value indicating whether the collection can be preloaded.

SyncRoot

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

Methods

Add(ModelComponent, Boolean)

Adds a ModelComponent object to the ModelComponentCollection.

Add(ModelComponent)

Adds a ModelComponent object to the ModelComponentCollection.

Add(String, IModelComponent, Boolean)

Adds a IModelComponent object to the ModelComponentCollection.

Add(String, IModelComponent)

Adds a IModelComponent object to the ModelComponentCollection.

AddNew(String, String, Type)

Adds a new IModelComponent to the collection.

AddNew(String, Type)

Adds a new IModelComponent to the collection.

CanAdd(ModelComponent, String)

Indicates whether the collection can add a ModelComponent.

ChangeKey(String, String)

Changes the specified keys to the collection.

Clear()

Removes all elements from the ModelComponentCollection.

Contains(IModelComponent)

Determines whether the specified item is in the collection.

Contains(String)

Determines whether an item with the specified key is in the ModelComponentCollection.

CopyTo(Array, Int32)

Copies the entire ModelComponentCollection to a one-dimensional Array, starting at the specified index of the target array.

EnsureLoaded()

Ensures the collection is loaded.

GetEnumerator()

Returns an enumerator that can iterate through the ModelComponentCollection.

GetItem(String, Boolean, String)

Gets a reference to the specified component.

IndexOf(IModelComponent)

Searches for the specified item and returns its zero-based index within the collection.

IndexOf(String)

Returns the zero-based index of the first occurrence of an IModelComponent that has the specified key in the ModelComponentCollection.

Insert(IModelComponent, String, Int32, Boolean)

Inserts an IModelComponent in the ModelComponentCollection.

Insert(IModelComponent, String, Int32)

Inserts an IModelComponent in the ModelComponentCollection.

Insert(Int32, ModelComponent)

Inserts an ModelComponent in the ModelComponentCollection.

Remove(IModelComponent)

Removes the specified IModelComponent from the collection.

RemoveAt(Int32, Boolean)

emoves the IModelComponent at the specified index from the ModelComponentCollection.

RemoveAt(Int32)

Removes the IModelComponent at the specified index from the ModelComponentCollection.

Events

CollectionChanged

Occurs when the collection changes.

CollectionChanging

Occurs when the collection is changing.

Explicit Interface Implementations

IList.Add(Object)
IList.Clear()
IList.Contains(Object)
IList.IndexOf(Object)
IList.Insert(Int32, Object)
IList.Item[Int32]
IList.Remove(Object)
IList.RemoveAt(Int32)
IModelComponentCollection.Contains(IModelComponent)
IModelComponentCollection.Remove(IModelComponent, Boolean)
IModelComponentCollection.Remove(IModelComponent)
IOnDemandLoadableCollection.BlockOnDemandLoad(Boolean)
IOnDemandLoadableCollection.Loaded

Applies to