EntityExtensions.GetRelatedEntity 方法 (Entity, OrganizationServiceContext, Relationship)

应用到: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Retrieves the related entity for a specific relationship.

命名空间: Microsoft.Xrm.Client
程序集: Microsoft.Xrm.Client (在 Microsoft.Xrm.Client.dll 中)

使用情况

用法
Dim entity As Entity
Dim context As OrganizationServiceContext
Dim relationship As Relationship
Dim returnValue As Entity

returnValue = EntityExtensions.GetRelatedEntity(entity, context, relationship)

语法

声明
<ExtensionAttribute> _
Public Shared Function GetRelatedEntity ( _
    entity As Entity, _
    context As OrganizationServiceContext, _
    relationship As Relationship _
) As Entity
[ExtensionAttribute] 
public static Entity GetRelatedEntity (
    Entity entity,
    OrganizationServiceContext context,
    Relationship relationship
)

参数

  • entity
    Type: Entity. The entity instance.
  • relationship
    Type: Relationship. The relationship instance.

返回值

Type: Entity
The related entity for a specific relationship.

备注

Extends the core GetRelatedEntity method.

线程安全性

此类型的所有公共静态(Visual Basic 中的 Shared)成员都是线程安全成员。不保证任何实例成员是线程安全成员。

平台

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

另请参阅

参考

EntityExtensions 类
EntityExtensions 成员
Microsoft.Xrm.Client 命名空间

其他资源

Developer Extensions for Microsoft Dynamics CRM

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.