共用方式為


MemberRelationshipService.Item[] 屬性

定義

建立來源和目標物件之間的關聯性。

多載

Item[MemberRelationship]

建立來源和目標物件之間的關聯性。

Item[Object, MemberDescriptor]

建立來源和目標物件之間的關聯性。

Item[MemberRelationship]

來源:
MemberRelationshipService.cs
來源:
MemberRelationshipService.cs
來源:
MemberRelationshipService.cs

建立來源和目標物件之間的關聯性。

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

參數

source
MemberRelationship

來源關聯性。 這是關聯性指派的左側。

屬性值

source 相關聯的目前關聯性,如果沒有關聯性,則為 Empty

例外狀況

sourcenull

source 為空,或服務不支援關聯性。

備註

如果 Empty 指派給來源,則會移除任何現有的關聯性。

適用於

Item[Object, MemberDescriptor]

來源:
MemberRelationshipService.cs
來源:
MemberRelationshipService.cs
來源:
MemberRelationshipService.cs

建立來源和目標物件之間的關聯性。

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

參數

sourceOwner
Object

來源關聯性的擁有者。

sourceMember
MemberDescriptor

來源關聯性的成員。

屬性值

封裝來源和目標物件之間關聯性的 MemberRelationship 結構,如果沒有關聯性,則為 null

例外狀況

sourceOwnersourceMembernull

sourceOwnersourceMember 為空,或服務不支援關聯性。

適用於