다음을 통해 공유


Relationship Class

Definition

Defines a one-to-many relationship between two dimensions.

public class Relationship : Microsoft.AnalysisServices.ModelComponent, ICloneable
type Relationship = class
    inherit ModelComponent
    interface ICloneable
Public Class Relationship
Inherits ModelComponent
Implements ICloneable
Inheritance
Relationship
Implements

Remarks

Exists between two database tables when one table has a foreign key that references the primary key of another table.

Constructors

Relationship()

Initializes a new instance of the Relationship class using the default values.

Relationship(String)

Initializes a new instance of the Relationship class using the specified identifier.

Properties

ActiveState

Gets or sets the active state of the object.

Annotations

Gets a collection within which you can store custom data.

(Inherited from ModelComponent)
CrossFilterDirection

Gets or sets the cross filter direction.

DefinitionType

Gets or sets the definition type of the current instance.

FriendlyName

Gets the friendly name of the Relationship object.

FromRelationshipEnd

Gets the source end of the relationship.

ID

Gets or sets the identifier of the relationship.

KeyForCollection

Gets the key that is used in the collections.

OwningCollection

Gets or sets the collection that contains the ModelComponent.

(Inherited from ModelComponent)
Parent

Gets the IModelComponent object that is the parent of the ModelComponent object.

(Inherited from ModelComponent)
ProcessingState

Gets or sets the processing state of the relationship.

ToRelationshipEnd

Gets the target end of the relationship.

Visible

Gets or sets an indication whether the relationship is visible.

Methods

AddToContainer(IContainer)

Adds the ModelComponent object to the specified container.

(Inherited from ModelComponent)
AfterInsert(Int32)

Displays a ModelComponent object after added to the specified index.

(Inherited from ModelComponent)
AfterMove(Int32, Int32)

Displays a ModelComponent object after moving to the specified index.

(Inherited from ModelComponent)
AfterRemove(ModelComponentCollection)

Displays a ModelComponentCollection after a ModelComponent object is removed.

(Inherited from ModelComponent)
BeforeRemove(Boolean)

Removes the ModelComponent object before the cleanup.

(Inherited from ModelComponent)
Clone()

Returns a clone of the object.

CopyTo(ModelComponent)

Copies a ModelComponent object to the specified object.

(Inherited from ModelComponent)
CopyTo(Relationship)

Copies the content of this object to another object (the destination).

RemoveFromContainer(IContainer)

Removes the ModelComponent object from the specified container.

(Inherited from ModelComponent)
Reset()

Resets the component to an initial state.

(Inherited from ModelComponent)
Submit()

Submits a ModelComponent object.

(Inherited from ModelComponent)
Submit(Boolean)

Submits a ModelComponent object.

(Inherited from ModelComponent)
ToString()

Returns a string that represents the current object.

(Inherited from ModelComponent)
Validate(ValidationErrorCollection, Boolean, ServerEdition)

Indicates whether a ModelComponent object is valid.

(Inherited from 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.

(Inherited from ModelComponent)
Validate(ValidationErrorCollection)

Validates the element to which it is appended; returns any errors encountered in a collection.

(Inherited from ModelComponent)

Explicit Interface Implementations

ICloneable.Clone()
IHostableComponent.Host (Inherited from ModelComponent)
IModelComponent.FriendlyPath (Inherited from ModelComponent)
IModelComponent.OwningCollection (Inherited from ModelComponent)

Applies to