MemberRelationshipService.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
建立源对象与目标对象之间的关系。
重载
Item[MemberRelationship] |
建立源对象与目标对象之间的关系。 |
Item[Object, MemberDescriptor] |
建立源对象与目标对象之间的关系。 |
Item[MemberRelationship]
- Source:
- MemberRelationshipService.cs
- Source:
- MemberRelationshipService.cs
- Source:
- 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。
例外
source
为 null
。
source
为空,或者该服务不支持这种关系。
注解
如果 Empty 分配给源,则删除任何现有关系。
适用于
Item[Object, MemberDescriptor]
- Source:
- MemberRelationshipService.cs
- Source:
- MemberRelationshipService.cs
- Source:
- 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
。
例外
sourceOwner
或 sourceMember
为 null
。
sourceOwner
或 sourceMember
为空,或者该服务不支持这种关系。