Редагувати

Поділитися через


MemberRelationshipService.SetRelationship Method

Definition

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)

Parameters

source
MemberRelationship

The source relationship.

relationship
MemberRelationship

The relationship to set into the source.

Exceptions

The relationship is not supported by the service.

Remarks

The SetRelationship method clears any existing relationship if the relationship parameter is Empty. The default implementation stores relationships in a dictionary using weak references so the relationship table does not keep objects alive.

Applies to