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.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft