MemberRelationshipService.Item Property (MemberRelationship)

 

Establishes a relationship between a source and target object.

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

public MemberRelationship this[
	MemberRelationship source
] { get; set; }

Parameters

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

The source relationship. This is the left-hand side of a relationship assignment.

Property Value

Type: System.ComponentModel.Design.Serialization.MemberRelationship

The current relationship associated with source, or Empty if there is no relationship.

Exception Condition
ArgumentNullException

source is null.

ArgumentException

source is empty, or the relationship is not supported by the service.

If Empty is assigned to the source, any existing relationship is removed.

.NET Framework
Available since 2.0
Return to top
Show: