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


Класс AttributeRelationship

Provides details on the relationship between one attribute and another. This class cannot be inherited.

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

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.AnalysisServices.ModelComponent
        Microsoft.AnalysisServices.AttributeRelationship

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

Синтаксис

'Декларация
<GuidAttribute("7BE640AB-7EF4-4e4c-A97E-1BE1AF45BA19")> _
Public NotInheritable Class AttributeRelationship _
    Inherits ModelComponent _
    Implements ICloneable
'Применение
Dim instance As AttributeRelationship
[GuidAttribute("7BE640AB-7EF4-4e4c-A97E-1BE1AF45BA19")]
public sealed class AttributeRelationship : ModelComponent, 
    ICloneable
[GuidAttribute(L"7BE640AB-7EF4-4e4c-A97E-1BE1AF45BA19")]
public ref class AttributeRelationship sealed : public ModelComponent, 
    ICloneable
[<SealedAttribute>]
[<GuidAttribute("7BE640AB-7EF4-4e4c-A97E-1BE1AF45BA19")>]
type AttributeRelationship =  
    class 
        inherit ModelComponent 
        interface ICloneable 
    end
public final class AttributeRelationship extends ModelComponent implements ICloneable

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

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

  Имя Описание
Открытый метод AttributeRelationship() Initializes a new instance of the AttributeRelationship class using the default values.
Открытый метод AttributeRelationship(String) Initializes a new instance of AttributeRelationship using an identifier.

В начало

Свойства

  Имя Описание
Открытое свойство Annotations Gets a collection within which you can store custom data. (Производный от ModelComponent.)
Открытое свойство Attribute Gets or sets the Attribute object to which the current relationship is being created.
Открытое свойство AttributeID Gets or sets the AttributeID for the current AttributeRelationship.
Открытое свойство Cardinality Gets or sets the cardinality of the relationship between the current parent attribute and the defined Attribute. Cardinality refers to the defined attribute, not the parent attribute.
Открытое свойство Container (Производный от Component.)
Защищенное свойство FriendlyName Инфраструктура. Gets the friendly name of the ModelComponent. (Производный от ModelComponent.)
Защищенное свойство KeyForCollection Инфраструктура. Gets the key used in the collection. (Производный от ModelComponent.)
Открытое свойство Name Gets or sets the name of the relationship.
Открытое свойство Optionality Gets or sets the Optionality definition of the relationship between parent attribute and current attribute.
Открытое свойство OverrideBehavior Gets or sets the OverrideBehavior definition of the relationship.
Открытое свойство OwningCollection Gets or sets the collection that contains the ModelComponent. (Производный от ModelComponent.)
Открытое свойство Parent Gets the parent Attribute for the current attribute relationship.
Открытое свойство ParentDatabase Gets the ParentDatabase object for the current AttributeRelationship object.
Открытое свойство ParentDimension Gets the ParentDimension object for the current AttributeRelationship object.
Открытое свойство ParentServer Gets the ParentServer object for the current AttributeRelationship object.
Открытое свойство RelationshipType Gets or sets the RelationshipType definition of the relationship.
Открытое свойство Site (Производный от Component.)
Открытое свойство Translations Gets the translations collection for the current attribute relationship.
Открытое свойство Visible Gest or sets the current visibility of the attribute relationship.

В начало

Методы

  Имя Описание
Защищенный метод AddToContainer Инфраструктура. Adds a ModelComponent object to the specified container. (Производный от ModelComponent.)
Защищенный метод AfterInsert Инфраструктура. Displays a ModelComponent object after added to the specified index. (Производный от ModelComponent.)
Защищенный метод AfterMove Инфраструктура. Displays a ModelComponent object after moving to the specified index. (Производный от ModelComponent.)
Защищенный метод AfterRemove Инфраструктура. Displays a ModelComponentCollection after a ModelComponent object is removed. (Производный от ModelComponent.)
Защищенный метод BeforeRemove Инфраструктура. Removes the ModelComponent object before the cleanup. (Производный от ModelComponent.)
Открытый метод Clone Creates a new full copy of an object.
Открытый метод CopyTo Creates a full copy of current AttributeRelationship into object passed as parameter.
Открытый метод CreateObjRef Важный элемент безопасности. (Производный от MarshalByRefObject.)
Открытый метод Dispose (Производный от Component.)
Открытый метод Equals (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetLifetimeService Важный элемент безопасности. (Производный от MarshalByRefObject.)
Открытый метод GetType (Производный от Object.)
Открытый метод InitializeLifetimeService Важный элемент безопасности. (Производный от MarshalByRefObject.)
Защищенный метод RemoveFromContainer Инфраструктура. Removes a ModelComponent object from the specified container. (Производный от ModelComponent.)
Открытый метод Submit() Инфраструктура. Submits a ModelComponent object. (Производный от ModelComponent.)
Открытый метод Submit(Boolean) Инфраструктура. Submits a ModelComponent object. (Производный от ModelComponent.)
Открытый метод ToString Инфраструктура. Returns a string that represents the current object. (Производный от ModelComponent.)
Открытый метод Validate(ValidationErrorCollection) Validates the element to which it is appended; returns any errors encountered in a collection. (Производный от ModelComponent.)
Открытый метод Validate(ValidationErrorCollection, Boolean) Validates the element to which it is appended; returns any errors encountered in a collection. Also contains a parameter to enable return of detailed errors. (Производный от ModelComponent.)
Открытый метод Validate(ValidationErrorCollection, Boolean, ServerEdition) Indicates whether a ModelComponent object is valid. (Производный от ModelComponent.)

В начало

События

  Имя Описание
Открытое событие Disposed (Производный от Component.)

В начало

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

  Имя Описание
Явная реализация интерфейсаЗакрытый метод ICloneable.Clone Creates a copy of the object instance.
Явная реализация интерфейсаЗакрытое свойство IHostableComponent.Host Gets or sets the IServiceProvider that is the host of the ModelComponent. (Производный от ModelComponent.)
Явная реализация интерфейсаЗакрытое свойство IModelComponent.FriendlyPath Gets a friendly path for the ModelComponent. (Производный от ModelComponent.)
Явная реализация интерфейсаЗакрытое свойство IModelComponent.OwningCollection Gets or sets the collection that owns the current object. (Производный от ModelComponent.)

В начало

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

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

См. также

Справочник

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