Classe Relationship
Exists between two database tables when one table has a foreign key that references the primary key of another table.
Hierarquia de herança
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Microsoft.AnalysisServices.ModelComponent
Microsoft.AnalysisServices.Relationship
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (em Microsoft.AnalysisServices.dll)
Sintaxe
'Declaração
Public Class Relationship _
Inherits ModelComponent _
Implements ICloneable
'Uso
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
O tipo Relationship expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
Relationship() | Initializes a new instance of the Relationship class. | |
Relationship(String) | Initializes a new instance of the Relationship class using the specified identifier. |
Início
Propriedades
Nome | Descrição | |
---|---|---|
Annotations | Gets a collection within which you can store custom data. (Herdado de ModelComponent.) | |
CanRaiseEvents | (Herdado de Component.) | |
Container | (Herdado de Component.) | |
DesignMode | (Herdado de Component.) | |
Events | (Herdado de Component.) | |
FriendlyName | Gets the friendly name of the specified relationship. (Substitui ModelComponent.FriendlyName.) | |
FromRelationshipEnd | Gets the cited XMLA validation failure and fixes it. | |
ID | Gets or sets the identifier of the specified relationship. | |
KeyForCollection | Gets the value of the key for the collection. (Substitui ModelComponent.KeyForCollection.) | |
OwningCollection | Gets or sets the collection that contains the ModelComponent. (Herdado de ModelComponent.) | |
Parent | Infraestrutura. Gets the IModelComponent object that is the parent of the ModelComponent object. (Herdado de ModelComponent.) | |
ProcessingState | Gets or sets the processing state of the specified relationship. | |
Site | (Herdado de Component.) | |
ToRelationshipEnd | Gets the cited XMLA validation failure for the relationship. | |
Visible | Gets or sets a value that indicates whether the relationship is visible. |
Início
Métodos
Nome | Descrição | |
---|---|---|
AddToContainer | Infraestrutura. Adds a ModelComponent object to the specified container. (Herdado de ModelComponent.) | |
AfterInsert | Infraestrutura. Displays a ModelComponent object after added to the specified index. (Herdado de ModelComponent.) | |
AfterMove | Infraestrutura. Displays a ModelComponent object after moving to the specified index. (Herdado de ModelComponent.) | |
AfterRemove | Infraestrutura. Displays a ModelComponentCollection after a ModelComponent object is removed. (Herdado de ModelComponent.) | |
BeforeRemove | Infraestrutura. Removes the ModelComponent object before the cleanup. (Herdado de ModelComponent.) | |
Clone | Creates a copy of the specified relationship. | |
CopyTo(ModelComponent) | Infraestrutura. Copies a ModelComponent object to the specified object. (Herdado de ModelComponent.) | |
CopyTo(Relationship) | Copies the specified relationship to a specific object. | |
CreateObjRef | Segurança crítica. (Herdado de MarshalByRefObject.) | |
Dispose() | (Herdado de Component.) | |
Dispose(Boolean) | (Herdado de Component.) | |
Equals | (Herdado de Object.) | |
Finalize | (Herdado de Component.) | |
GetHashCode | (Herdado de Object.) | |
GetLifetimeService | Segurança crítica. (Herdado de MarshalByRefObject.) | |
GetService | (Herdado de Component.) | |
GetType | (Herdado de Object.) | |
InitializeLifetimeService | Segurança crítica. (Herdado de MarshalByRefObject.) | |
MemberwiseClone() | (Herdado de Object.) | |
MemberwiseClone(Boolean) | (Herdado de MarshalByRefObject.) | |
RemoveFromContainer | Infraestrutura. Removes a ModelComponent object from the specified container. (Herdado de ModelComponent.) | |
Reset | Infraestrutura. Resets the component to an initial state. (Herdado de ModelComponent.) | |
Submit() | Infraestrutura. Submits a ModelComponent object. (Herdado de ModelComponent.) | |
Submit(Boolean) | Infraestrutura. Submits a ModelComponent object. (Herdado de ModelComponent.) | |
ToString | Infraestrutura. Returns a string that represents the current object. (Herdado de ModelComponent.) | |
Validate(ValidationErrorCollection) | Validates the element to which it is appended; returns any errors encountered in a collection. (Herdado de 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. (Herdado de ModelComponent.) | |
Validate(ValidationErrorCollection, Boolean, ServerEdition) | Indicates whether a ModelComponent object is valid. (Herdado de ModelComponent.) |
Início
Eventos
Nome | Descrição | |
---|---|---|
Disposed | (Herdado de Component.) |
Início
Implementações de interfaces explícitas
Nome | Descrição | |
---|---|---|
ICloneable.Clone | Creates a new, full copy of an object. | |
IHostableComponent.Host | Gets or sets the IServiceProvider that is the host of the ModelComponent. (Herdado de ModelComponent.) | |
IModelComponent.FriendlyPath | Gets a friendly path for the ModelComponent. (Herdado de ModelComponent.) | |
IModelComponent.OwningCollection | Gets or sets the collection that owns the current object. (Herdado de ModelComponent.) |
Início
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.