MemberRelationshipService.GetRelationship(MemberRelationship) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取到给定源关系的关系。
protected:
virtual System::ComponentModel::Design::Serialization::MemberRelationship GetRelationship(System::ComponentModel::Design::Serialization::MemberRelationship source);
protected virtual System.ComponentModel.Design.Serialization.MemberRelationship GetRelationship (System.ComponentModel.Design.Serialization.MemberRelationship source);
abstract member GetRelationship : System.ComponentModel.Design.Serialization.MemberRelationship -> System.ComponentModel.Design.Serialization.MemberRelationship
override this.GetRelationship : System.ComponentModel.Design.Serialization.MemberRelationship -> System.ComponentModel.Design.Serialization.MemberRelationship
Protected Overridable Function GetRelationship (source As MemberRelationship) As MemberRelationship
参数
- source
- MemberRelationship
源关系。
返回
到 source
的关系,如果不存在关系,则为 Empty。
注解
默认实现使用弱引用将关系存储在字典中,因此关系表不会使对象保持活动状态。