MemberRelationshipService.GetRelationship(MemberRelationship) 方法

定义

获取到给定源关系的关系。

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

注解

默认实现使用弱引用将关系存储在字典中,因此关系表不会使对象保持活动状态。

适用于