MemberRelationshipService.SetRelationship Method (MemberRelationship, MemberRelationship)

 

Creates a relationship between the source object and target relationship.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System (in System.dll)

protected virtual void SetRelationship(
	MemberRelationship source,
	MemberRelationship relationship
)

Parameters

source
Type: System.ComponentModel.Design.Serialization.MemberRelationship

The source relationship.

relationship
Type: System.ComponentModel.Design.Serialization.MemberRelationship

The relationship to set into the source.

Exception Condition
ArgumentException

The relationship is not supported by the service.

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.

.NET Framework
Available since 2.0
Return to top
Show: