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


Класс NamedComponentCollection

Contains a collection of INamedComponent objects.

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

System.Object
  Microsoft.AnalysisServices.ModelComponentCollection
    Microsoft.AnalysisServices.NamedComponentCollection
      Подробнее...

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

Синтаксис

'Декларация
<GuidAttribute("4CF930A2-FED5-48c0-AC50-DD4FBDA3E6A8")> _
Public MustInherit Class NamedComponentCollection _
    Inherits ModelComponentCollection _
    Implements INamedComponentCollection, IModelComponentCollection, ICollection, IEnumerable
'Применение
Dim instance As NamedComponentCollection
[GuidAttribute("4CF930A2-FED5-48c0-AC50-DD4FBDA3E6A8")]
public abstract class NamedComponentCollection : ModelComponentCollection, 
    INamedComponentCollection, IModelComponentCollection, ICollection, IEnumerable
[GuidAttribute(L"4CF930A2-FED5-48c0-AC50-DD4FBDA3E6A8")]
public ref class NamedComponentCollection abstract : public ModelComponentCollection, 
    INamedComponentCollection, IModelComponentCollection, ICollection, IEnumerable
[<AbstractClassAttribute>]
[<GuidAttribute("4CF930A2-FED5-48c0-AC50-DD4FBDA3E6A8")>]
type NamedComponentCollection =  
    class 
        inherit ModelComponentCollection 
        interface INamedComponentCollection 
        interface IModelComponentCollection 
        interface ICollection 
        interface IEnumerable 
    end
public abstract class NamedComponentCollection extends ModelComponentCollection implements INamedComponentCollection, IModelComponentCollection, ICollection, IEnumerable

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

Конструкторы

  Имя Описание
Защищенный метод NamedComponentCollection Инфраструктура. Initializes a new instance of the NamedComponentCollection class.

В начало

Свойства

  Имя Описание
Открытое свойство Count Gets the number of ModelComponent objects in the ModelComponentCollection. (Производный от ModelComponentCollection.)
Защищенное свойство DemandLoadingService Инфраструктура. Gets the demand loading service for the collection. (Производный от ModelComponentCollection.)
Открытое свойство IsFixedSize Gets a value indicating whether the ModelComponentCollection has a fixed size. (Производный от ModelComponentCollection.)
Открытое свойство IsReadOnly Gets a value indicating whether the ModelComponentCollection is read-only. (Производный от ModelComponentCollection.)
Открытое свойство IsSynchronized Gets a value indicating whether access to the ModelComponentCollection is synchronized (thread-safe). (Производный от ModelComponentCollection.)
Защищенное свойство Item Gets the IModelComponent at the specified index. (Производный от ModelComponentCollection.)
Защищенное свойство ItemsType Gets the Type of objects that can be contained by the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытое свойство Parent Gets the IModelComponent that contains the ModelComponentCollection. (Производный от ModelComponentCollection.)
Защищенное свойство Preloadable Инфраструктура. Gets a value indicating whether the collection can be preloaded. (Производный от ModelComponentCollection.)
Открытое свойство SyncRoot Gets an object that can be used to synchronize access to the ModelComponentCollection. (Производный от ModelComponentCollection.)

В начало

Методы

  Имя Описание
Защищенный метод Add(ModelComponent) Инфраструктура. Adds a ModelComponent object to the NamedComponentCollection. (Переопределяет ModelComponentCollection.Add(ModelComponent).)
Защищенный метод Add(String, IModelComponent) Инфраструктура. Adds a IModelComponent object to the ModelComponentCollection. (Производный от ModelComponentCollection.)
Защищенный метод Add(ModelComponent, Boolean) Инфраструктура. Adds a ModelComponent object to the ModelComponentCollection. (Производный от ModelComponentCollection.)
Защищенный метод Add(String, IModelComponent, Boolean) Инфраструктура. Adds a IModelComponent object to the ModelComponentCollection. (Производный от ModelComponentCollection.)
Защищенный метод AddNew(String, Type) Инфраструктура. Adds a new IModelComponent to the collection. (Производный от ModelComponentCollection.)
Защищенный метод AddNew(String, String, Type) Инфраструктура. Adds a new IModelComponent to the collection. (Производный от ModelComponentCollection.)
Открытый метод CanAdd Инфраструктура. Indicates whether the collection can add a ModelComponent. (Переопределяет ModelComponentCollection.CanAdd(ModelComponent, String%).)
Защищенный метод ChangeKey Инфраструктура. Changes the specified keys to the collection. (Производный от ModelComponentCollection.)
Открытый метод Clear Removes all elements from the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытый метод Contains(String) Determines whether an item with the specific key is in the NamedComponentCollection.
Защищенный метод Contains(IModelComponent) Determines whether the specified item is in the collection. (Производный от ModelComponentCollection.)
Открытый метод ContainsName Indicates whether the component contains its name.
Открытый метод CopyTo Copies the entire ModelComponentCollection to a one-dimensional Array, starting at the specified index of the target array. (Производный от ModelComponentCollection.)
Защищенный метод EnsureLoaded Инфраструктура. Ensures the collection is loaded. (Производный от ModelComponentCollection.)
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetEnumerator Returns an enumerator that can iterate through the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытый метод GetHashCode (Производный от Object.)
Защищенный метод GetItem Gets a reference to the specified component. (Производный от ModelComponentCollection.)
Открытый метод GetNewID() Gets a new unique ID for the component.
Открытый метод GetNewID(String) Gets the value for the new unique ID.
Открытый метод GetNewName() Gets a unique new name for the component.
Открытый метод GetNewName(String) Gets a unique new name for the component with the specified name prefix.
Открытый метод GetType (Производный от Object.)
Открытый метод IndexOf(String) Reports the index of the first occurrence of the component.
Защищенный метод IndexOf(IModelComponent) Searches for the specified item and returns its zero-based index within the collection. (Производный от ModelComponentCollection.)
Открытый метод IndexOfName Gets the index of the NamedComponent, identified by name, in the collection.
Защищенный метод Insert(Int32, ModelComponent) Инфраструктура. Inserts a ModelComponent in the NamedComponentCollection. (Переопределяет ModelComponentCollection.Insert(Int32, ModelComponent).)
Защищенный метод Insert(IModelComponent, String, Int32) Инфраструктура. Inserts an IModelComponent in the ModelComponentCollection. (Производный от ModelComponentCollection.)
Защищенный метод Insert(IModelComponent, String, Int32, Boolean) Инфраструктура. Inserts an IModelComponent in the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытый метод IsValidID(String) Determines whether the named component collection identifier is valid.
Открытый метод IsValidID(String, String%) Determines whether the named component collection identifier is valid.
Защищенный метод IsValidID(String, Type, String%) Инфраструктура. Determines whether the named component collection identifier is valid.
Открытый метод IsValidName(String) Determines whether the named component collection name is valid.
Открытый метод IsValidName(String, String%) Determines whether the named component collection name is valid.
Защищенный метод IsValidName(String, Type, String%) Инфраструктура. Determines whether the named component collection name is valid.
Защищенный метод IsValidName(String, Type, ModelType, Int32, String%)
Защищенный метод MemberwiseClone (Производный от Object.)
Защищенный метод Remove Removes the specified IModelComponent from the collection. (Производный от ModelComponentCollection.)
Открытый метод RemoveAt(Int32) Removes the IModelComponent at the specified index from the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытый метод RemoveAt(Int32, Boolean) Инфраструктура. Removes the IModelComponent at the specified index from the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытый метод ToString (Производный от Object.)

В начало

События

  Имя Описание
Открытое событие CollectionChanged Инфраструктура. Occurs when the collection changes. (Производный от ModelComponentCollection.)
Открытое событие CollectionChanging Инфраструктура. Occurs when the collection is changing. (Производный от ModelComponentCollection.)

В начало

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

  Имя Описание
Явная реализация интерфейсаЗакрытый метод IList.Add Adds an item to the collection. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытый метод IList.Clear Removes all items from the collection. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытый метод IList.Contains Indicates whether the collection contains a specific value. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытый метод IList.IndexOf Determines the index of a specific item in the collection. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытый метод IList.Insert Inserts an item to the collection at the specified index. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытое свойство IList.Item Gets or sets the element at the specified index. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытый метод IList.Remove Removes the first occurrence of a specified object from the collection. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытый метод IList.RemoveAt Removes the item at the specified index. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытый метод IModelComponentCollection.Contains Indicates whether the collection contains a specific value. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытый метод IModelComponentCollection.Remove(IModelComponent) Removes the first occurrence of a specific IModelComponent from the ModelComponentCollection. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытый метод IModelComponentCollection.Remove(IModelComponent, Boolean) Removes the first occurrence of a specific IModelComponent from the ModelComponentCollection. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытый метод IOnDemandLoadableCollection.BlockOnDemandLoad Specifies the blocked demand load. (Производный от ModelComponentCollection.)
Явная реализация интерфейсаЗакрытое свойство IOnDemandLoadableCollection.Loaded Gets or sets a value that indicates whether the collection is loaded. (Производный от ModelComponentCollection.)

В начало

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

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

См. также

Справочник

Пространство имен Microsoft.AnalysisServices

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

System.Object
  Microsoft.AnalysisServices.ModelComponentCollection
    Microsoft.AnalysisServices.NamedComponentCollection
      Microsoft.AnalysisServices.ActionCollection
      Microsoft.AnalysisServices.AggregationCollection
      Microsoft.AnalysisServices.AggregationInstanceCollection
      Microsoft.AnalysisServices.CubeDimensionCollection
      Microsoft.AnalysisServices.DimensionAttributeCollection
      Microsoft.AnalysisServices.HierarchyCollection
      Microsoft.AnalysisServices.KpiCollection
      Microsoft.AnalysisServices.LevelCollection
      Microsoft.AnalysisServices.MajorObjectCollection
      Microsoft.AnalysisServices.MeasureCollection
      Microsoft.AnalysisServices.MiningModelColumnCollection
      Microsoft.AnalysisServices.MiningStructureColumnCollection