Share via


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.