Partager via


Classe Relationship

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.AnalysisServices
Assembly :  Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)

Syntaxe

'Déclaration
Public Class Relationship _
    Inherits ModelComponent _
    Implements ICloneable
'Utilisation
Dim instance As Relationship
public class Relationship : ModelComponent, 
    ICloneable
public ref class Relationship : public ModelComponent, 
    ICloneable
type Relationship =  
    class 
        inherit ModelComponent 
        interface ICloneable 
    end
public class Relationship extends ModelComponent implements ICloneable

Le type Relationship expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique Relationship() Initializes a new instance of the Relationship class.
Méthode publique Relationship(String) Initializes a new instance of the Relationship class using the specified identifier.

Haut de la page

Propriétés

  Nom Description
Propriété publique Annotations Gets a collection within which you can store custom data. (hérité de ModelComponent.)
Propriété protégée CanRaiseEvents (hérité de Component.)
Propriété publique Container (hérité de Component.)
Propriété protégée DesignMode (hérité de Component.)
Propriété protégée Events (hérité de Component.)
Propriété protégée FriendlyName Gets the friendly name of the specified relationship. (remplace ModelComponent.FriendlyName.)
Propriété publique FromRelationshipEnd Gets the cited XMLA validation failure and fixes it.
Propriété publique ID Gets or sets the identifier of the specified relationship.
Propriété protégée KeyForCollection Gets the value of the key for the collection. (remplace ModelComponent.KeyForCollection.)
Propriété publique OwningCollection Gets or sets the collection that contains the ModelComponent. (hérité de ModelComponent.)
Propriété publique Parent Infrastructure. Gets the IModelComponent object that is the parent of the ModelComponent object. (hérité de ModelComponent.)
Propriété publique ProcessingState Gets or sets the processing state of the specified relationship.
Propriété publique Site (hérité de Component.)
Propriété publique ToRelationshipEnd Gets the cited XMLA validation failure for the relationship.
Propriété publique Visible Gets or sets a value that indicates whether the relationship is visible.

Haut de la page

Méthodes

  Nom Description
Méthode protégée AddToContainer Infrastructure. Adds a ModelComponent object to the specified container. (hérité de ModelComponent.)
Méthode protégée AfterInsert Infrastructure. Displays a ModelComponent object after added to the specified index. (hérité de ModelComponent.)
Méthode protégée AfterMove Infrastructure. Displays a ModelComponent object after moving to the specified index. (hérité de ModelComponent.)
Méthode protégée AfterRemove Infrastructure. Displays a ModelComponentCollection after a ModelComponent object is removed. (hérité de ModelComponent.)
Méthode protégée BeforeRemove Infrastructure. Removes the ModelComponent object before the cleanup. (hérité de ModelComponent.)
Méthode publique Clone Creates a copy of the specified relationship.
Méthode protégée CopyTo(ModelComponent) Infrastructure. Copies a ModelComponent object to the specified object. (hérité de ModelComponent.)
Méthode publique CopyTo(Relationship) Copies the specified relationship to a specific object.
Méthode publique CreateObjRef Informations critiques de sécurité. (hérité de MarshalByRefObject.)
Méthode publique Dispose() (hérité de Component.)
Méthode protégée Dispose(Boolean) (hérité de Component.)
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Component.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetLifetimeService Informations critiques de sécurité. (hérité de MarshalByRefObject.)
Méthode protégée GetService (hérité de Component.)
Méthode publique GetType (hérité de Object.)
Méthode publique InitializeLifetimeService Informations critiques de sécurité. (hérité de MarshalByRefObject.)
Méthode protégée MemberwiseClone() (hérité de Object.)
Méthode protégée MemberwiseClone(Boolean) (hérité de MarshalByRefObject.)
Méthode protégée RemoveFromContainer Infrastructure. Removes a ModelComponent object from the specified container. (hérité de ModelComponent.)
Méthode protégée Reset Infrastructure. Resets the component to an initial state. (hérité de ModelComponent.)
Méthode publique Submit() Infrastructure. Submits a ModelComponent object. (hérité de ModelComponent.)
Méthode publique Submit(Boolean) Infrastructure. Submits a ModelComponent object. (hérité de ModelComponent.)
Méthode publique ToString Infrastructure. Returns a string that represents the current object. (hérité de ModelComponent.)
Méthode publique Validate(ValidationErrorCollection) Validates the element to which it is appended; returns any errors encountered in a collection. (hérité de ModelComponent.)
Méthode publique 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. (hérité de ModelComponent.)
Méthode publique Validate(ValidationErrorCollection, Boolean, ServerEdition) Indicates whether a ModelComponent object is valid. (hérité de ModelComponent.)

Haut de la page

Événements

  Nom Description
Événement public Disposed (hérité de Component.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée ICloneable.Clone Creates a new, full copy of an object.
Implémentation d'interface explicitePropriété privée IHostableComponent.Host Gets or sets the IServiceProvider that is the host of the ModelComponent. (hérité de ModelComponent.)
Implémentation d'interface explicitePropriété privée IModelComponent.FriendlyPath Gets a friendly path for the ModelComponent. (hérité de ModelComponent.)
Implémentation d'interface explicitePropriété privée IModelComponent.OwningCollection Gets or sets the collection that owns the current object. (hérité de ModelComponent.)

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.AnalysisServices