MemberRelationshipService.SetRelationship(MemberRelationship, MemberRelationship) MemberRelationshipService.SetRelationship(MemberRelationship, MemberRelationship) MemberRelationshipService.SetRelationship(MemberRelationship, MemberRelationship) MemberRelationshipService.SetRelationship(MemberRelationship, MemberRelationship) Method

Definition

Erstellt zwischen der Quellobjekt- und der Zielbeziehung eine Beziehung.Creates a relationship between the source object and target relationship.

protected:
 virtual void SetRelationship(System::ComponentModel::Design::Serialization::MemberRelationship source, System::ComponentModel::Design::Serialization::MemberRelationship relationship);
protected virtual void SetRelationship (System.ComponentModel.Design.Serialization.MemberRelationship source, System.ComponentModel.Design.Serialization.MemberRelationship relationship);
abstract member SetRelationship : System.ComponentModel.Design.Serialization.MemberRelationship * System.ComponentModel.Design.Serialization.MemberRelationship -> unit
override this.SetRelationship : System.ComponentModel.Design.Serialization.MemberRelationship * System.ComponentModel.Design.Serialization.MemberRelationship -> unit
Protected Overridable Sub SetRelationship (source As MemberRelationship, relationship As MemberRelationship)

Parameter

source
MemberRelationship MemberRelationship MemberRelationship MemberRelationship

Die Quellbeziehung.The source relationship.

relationship
MemberRelationship MemberRelationship MemberRelationship MemberRelationship

Die für die Quelle festzulegende Beziehung.The relationship to set into the source.

Ausnahmen

Die Beziehung wird von dem Dienst nicht unterstützt.The relationship is not supported by the service.

Hinweise

Die SetRelationship -Methode löscht alle vorhandenen Beziehungen, wenn der Beziehungs EmptyParameter ist.The SetRelationship method clears any existing relationship if the relationship parameter is Empty. Die Standard Implementierung speichert Beziehungen in einem Wörterbuch mithilfe schwacher Verweise, sodass Objekte von der Beziehungs Tabelle nicht aktiv bleiben.The default implementation stores relationships in a dictionary using weak references so the relationship table does not keep objects alive.

Gilt für: