Επεξεργασία

Κοινή χρήση μέσω


MemberRelationshipService.Item[] Property

Definition

Establishes a relationship between a source and target object.

Overloads

Item[MemberRelationship]

Establishes a relationship between a source and target object.

Item[Object, MemberDescriptor]

Establishes a relationship between a source and target object.

Item[MemberRelationship]

Source:
MemberRelationshipService.cs
Source:
MemberRelationshipService.cs
Source:
MemberRelationshipService.cs

Establishes a relationship between a source and target object.

public:
 property System::ComponentModel::Design::Serialization::MemberRelationship default[System::ComponentModel::Design::Serialization::MemberRelationship] { System::ComponentModel::Design::Serialization::MemberRelationship get(System::ComponentModel::Design::Serialization::MemberRelationship source); void set(System::ComponentModel::Design::Serialization::MemberRelationship source, System::ComponentModel::Design::Serialization::MemberRelationship value); };
public System.ComponentModel.Design.Serialization.MemberRelationship this[System.ComponentModel.Design.Serialization.MemberRelationship source] { get; set; }
member this.Item(System.ComponentModel.Design.Serialization.MemberRelationship) : System.ComponentModel.Design.Serialization.MemberRelationship with get, set
Default Public Property Item(source As MemberRelationship) As MemberRelationship

Parameters

source
MemberRelationship

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

Property Value

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

Exceptions

source is null.

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

Remarks

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

Applies to

Item[Object, MemberDescriptor]

Source:
MemberRelationshipService.cs
Source:
MemberRelationshipService.cs
Source:
MemberRelationshipService.cs

Establishes a relationship between a source and target object.

public:
 property System::ComponentModel::Design::Serialization::MemberRelationship default[System::Object ^, System::ComponentModel::MemberDescriptor ^] { System::ComponentModel::Design::Serialization::MemberRelationship get(System::Object ^ sourceOwner, System::ComponentModel::MemberDescriptor ^ sourceMember); void set(System::Object ^ sourceOwner, System::ComponentModel::MemberDescriptor ^ sourceMember, System::ComponentModel::Design::Serialization::MemberRelationship value); };
public System.ComponentModel.Design.Serialization.MemberRelationship this[object sourceOwner, System.ComponentModel.MemberDescriptor sourceMember] { get; set; }
member this.Item(obj * System.ComponentModel.MemberDescriptor) : System.ComponentModel.Design.Serialization.MemberRelationship with get, set
Default Public Property Item(sourceOwner As Object, sourceMember As MemberDescriptor) As MemberRelationship

Parameters

sourceOwner
Object

The owner of a source relationship.

sourceMember
MemberDescriptor

The member of a source relationship.

Property Value

A MemberRelationship structure encapsulating the relationship between a source and target object, or null if there is no relationship.

Exceptions

sourceOwner or sourceMember is null.

sourceOwner or sourceMember is empty, or the relationship is not supported by the service.

Applies to