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


Класс AttributeRelationshipCollection

Contains a collection of AttributeRelationship objects. This class cannot be inherited.

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

System.Object
  Microsoft.AnalysisServices.ModelComponentCollection
    Microsoft.AnalysisServices.AttributeRelationshipCollection

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

Синтаксис

'Декларация
<GuidAttribute("C43BCBCC-4DF3-4b26-88DB-93D058F4315C")> _
Public NotInheritable Class AttributeRelationshipCollection _
    Inherits ModelComponentCollection
'Применение
Dim instance As AttributeRelationshipCollection
[GuidAttribute("C43BCBCC-4DF3-4b26-88DB-93D058F4315C")]
public sealed class AttributeRelationshipCollection : ModelComponentCollection
[GuidAttribute(L"C43BCBCC-4DF3-4b26-88DB-93D058F4315C")]
public ref class AttributeRelationshipCollection sealed : public ModelComponentCollection
[<SealedAttribute>]
[<GuidAttribute("C43BCBCC-4DF3-4b26-88DB-93D058F4315C")>]
type AttributeRelationshipCollection =  
    class 
        inherit ModelComponentCollection 
    end
public final class AttributeRelationshipCollection extends ModelComponentCollection

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

Свойства

  Имя Описание
Открытое свойство Count Gets the number of ModelComponent objects in the ModelComponentCollection. (Производный от 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[Int32] Gets the AttributeRelationship object from the collection at the specified index.
Открытое свойство Item[String] Gets the AttributeRelationship object from the collection with the given attribute identifier.
Открытое свойство Parent Gets the IModelComponent that contains the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытое свойство SyncRoot Gets an object that can be used to synchronize access to the ModelComponentCollection. (Производный от ModelComponentCollection.)

В начало

Методы

  Имя Описание
Открытый метод Add(String) Creates and adds the AttributeRelationship, which is defined by attributeID, to the end of the collection.
Открытый метод Add(AttributeRelationship) Adds the specified AttributeRelationship to the end of the collection.
Защищенный метод Add(ModelComponent) Инфраструктура. Adds a ModelComponent object to the ModelComponentCollection. (Производный от ModelComponentCollection.)
Защищенный метод Add(ModelComponent, Boolean) Инфраструктура. Adds a ModelComponent object to the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытый метод CanAdd Инфраструктура. Indicates whether the collection can add a ModelComponent. (Производный от ModelComponentCollection.)
Защищенный метод ChangeKey Инфраструктура. Changes the specified keys to the collection. (Производный от ModelComponentCollection.)
Открытый метод Clear Removes all elements from the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытый метод Contains(String) Indicates whether the collection contains the AttributeRelationship, identified by attributeId
Открытый метод Contains(AttributeRelationship) Indicates whether the collection contains the specified AttributeRelationship.
Открытый метод ContainsName Indicates whether the collection contains a AttributeRelationship with the specified name
Открытый метод CopyTo Copies the entire ModelComponentCollection to a one-dimensional Array, starting at the specified index of the target array. (Производный от ModelComponentCollection.)
Открытый метод Equals (Производный от Object.)
Открытый метод Find Gets the AttributeRelationship, with the specified attributeId, from the collection.
Открытый метод GetEnumerator Returns an enumerator that can iterate through the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetNewName Assists in creating new consecutive numbered names that start with namePrefix.
Открытый метод GetType (Производный от Object.)
Открытый метод IndexOf(String) Gets the index of the AttributeRelationship, identified by attributeId, in the collection.
Открытый метод IndexOf(AttributeRelationship) Gets the index of the specified AttributeRelationship in the collection.
Открытый метод IndexOfName Gets the index of a AttributeRelationship, identified by name, in the collection.
Открытый метод Insert(Int32, AttributeRelationship) Inserts the specified AttributeRelationship into the collection at the location specified by index.
Открытый метод Insert(Int32, String) Creates and inserts the specified AttributeRelationship into the collection at the specified index.
Защищенный метод Insert(Int32, ModelComponent) Инфраструктура. Inserts an ModelComponent in the ModelComponentCollection. (Производный от ModelComponentCollection.)
Открытый метод IsValidName(String) Verifies that the specified name is a valid name for an AttributeRelationship.
Открытый метод IsValidName(String, String%) Verifies that the specified name is a valid name for an AttributeRelationship and returns the error message if it the name is not valid.
Открытый метод Move(Int32, Int32) Moves a specified AttributeRelationship from one position to another position in the collection.
Открытый метод Move(String, Int32) Moves the specified AttributeRelationship into the collection at the specified index position.
Открытый метод Move(AttributeRelationship, Int32) Moves a specified AttributeRelationship to a new index position in the collection.
Открытый метод Remove(String) Removes an AttributeRelationship, identified by attributeId, from the collection.
Открытый метод Remove(AttributeRelationship) Removes the specified AttributeRelationship from the collection.
Защищенный метод Remove(IModelComponent) Removes the specified IModelComponent from the collection. (Производный от ModelComponentCollection.)
Открытый метод Remove(String, Boolean) Инфраструктура. Removes an AttributeRelationship from this collection.
Открытый метод Remove(AttributeRelationship, Boolean) Инфраструктура. Removes the specified AttributeRelationship from this collection.
Открытый метод 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.)

В начало

Замечания

Добавления:   17 июля 2006 г.

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

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

См. также

Справочник

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