Condividi tramite


Classe Relationship

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Sintassi

'Dichiarazione
Public Class Relationship _
    Inherits ModelComponent _
    Implements ICloneable
'Utilizzo
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

Nel tipo Relationship sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico Relationship() Initializes a new instance of the Relationship class.
Metodo pubblico Relationship(String) Initializes a new instance of the Relationship class using the specified identifier.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Annotations Gets a collection within which you can store custom data. Ereditato da ModelComponent.
Proprietà protetta CanRaiseEvents Ereditato da Component.
Proprietà pubblica Container Ereditato da Component.
Proprietà protetta DesignMode Ereditato da Component.
Proprietà protetta Events Ereditato da Component.
Proprietà protetta FriendlyName Gets the friendly name of the specified relationship. Esegue l'override di ModelComponent.FriendlyName.
Proprietà pubblica FromRelationshipEnd Gets the cited XMLA validation failure and fixes it.
Proprietà pubblica ID Gets or sets the identifier of the specified relationship.
Proprietà protetta KeyForCollection Gets the value of the key for the collection. Esegue l'override di ModelComponent.KeyForCollection.
Proprietà pubblica OwningCollection Gets or sets the collection that contains the ModelComponent. Ereditato da ModelComponent.
Proprietà pubblica Parent Infrastruttura. Gets the IModelComponent object that is the parent of the ModelComponent object. Ereditato da ModelComponent.
Proprietà pubblica ProcessingState Gets or sets the processing state of the specified relationship.
Proprietà pubblica Site Ereditato da Component.
Proprietà pubblica ToRelationshipEnd Gets the cited XMLA validation failure for the relationship.
Proprietà pubblica Visible Gets or sets a value that indicates whether the relationship is visible.

In alto

Metodi

  Nome Descrizione
Metodo protetto AddToContainer Infrastruttura. Adds a ModelComponent object to the specified container. Ereditato da ModelComponent.
Metodo protetto AfterInsert Infrastruttura. Displays a ModelComponent object after added to the specified index. Ereditato da ModelComponent.
Metodo protetto AfterMove Infrastruttura. Displays a ModelComponent object after moving to the specified index. Ereditato da ModelComponent.
Metodo protetto AfterRemove Infrastruttura. Displays a ModelComponentCollection after a ModelComponent object is removed. Ereditato da ModelComponent.
Metodo protetto BeforeRemove Infrastruttura. Removes the ModelComponent object before the cleanup. Ereditato da ModelComponent.
Metodo pubblico Clone Creates a copy of the specified relationship.
Metodo protetto CopyTo(ModelComponent) Infrastruttura. Copies a ModelComponent object to the specified object. Ereditato da ModelComponent.
Metodo pubblico CopyTo(Relationship) Copies the specified relationship to a specific object.
Metodo pubblico CreateObjRef Criticità per la sicurezza. Ereditato da MarshalByRefObject.
Metodo pubblico Dispose() Ereditato da Component.
Metodo protetto Dispose(Boolean) Ereditato da Component.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Component.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetLifetimeService Criticità per la sicurezza. Ereditato da MarshalByRefObject.
Metodo protetto GetService Ereditato da Component.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico InitializeLifetimeService Criticità per la sicurezza. Ereditato da MarshalByRefObject.
Metodo protetto MemberwiseClone() Ereditato da Object.
Metodo protetto MemberwiseClone(Boolean) Ereditato da MarshalByRefObject.
Metodo protetto RemoveFromContainer Infrastruttura. Removes a ModelComponent object from the specified container. Ereditato da ModelComponent.
Metodo protetto Reset Infrastruttura. Resets the component to an initial state. Ereditato da ModelComponent.
Metodo pubblico Submit() Infrastruttura. Submits a ModelComponent object. Ereditato da ModelComponent.
Metodo pubblico Submit(Boolean) Infrastruttura. Submits a ModelComponent object. Ereditato da ModelComponent.
Metodo pubblico ToString Infrastruttura. Returns a string that represents the current object. Ereditato da ModelComponent.
Metodo pubblico Validate(ValidationErrorCollection) Validates the element to which it is appended; returns any errors encountered in a collection. Ereditato da ModelComponent.
Metodo pubblico 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. Ereditato da ModelComponent.
Metodo pubblico Validate(ValidationErrorCollection, Boolean, ServerEdition) Indicates whether a ModelComponent object is valid. Ereditato da ModelComponent.

In alto

Eventi

  Nome Descrizione
Evento pubblico Disposed Ereditato da Component.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato ICloneable.Clone Creates a new, full copy of an object.
Implementazione esplicita dell'interfacciaProprietà privata IHostableComponent.Host Gets or sets the IServiceProvider that is the host of the ModelComponent. Ereditato da ModelComponent.
Implementazione esplicita dell'interfacciaProprietà privata IModelComponent.FriendlyPath Gets a friendly path for the ModelComponent. Ereditato da ModelComponent.
Implementazione esplicita dell'interfacciaProprietà privata IModelComponent.OwningCollection Gets or sets the collection that owns the current object. Ereditato da ModelComponent.

In alto

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.AnalysisServices