Dela via


EntityExtensions.GetRelatedEntity Method (Entity, OrganizationServiceContext, Relationship)

 

Applies To: Dynamics CRM 2013

Retrieves the related entity for a specific relationship.

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static Entity GetRelatedEntity(
    this Entity entity,
    OrganizationServiceContext context,
    Relationship relationship
)
public:
[ExtensionAttribute]
static Entity^ GetRelatedEntity(
    Entity^ entity,
    OrganizationServiceContext^ context,
    Relationship^ relationship
)
static member GetRelatedEntity : 
        entity:Entity *
        context:OrganizationServiceContext *
        relationship:Relationship -> Entity
<ExtensionAttribute>
Public Shared Function GetRelatedEntity (
    entity As Entity,
    context As OrganizationServiceContext,
    relationship As Relationship
) As Entity

Parameters

Return Value

Type: Microsoft.Xrm.Sdk.Entity

Type: Entity
The related entity for a specific relationship.

Remarks

Extends the core GetRelatedEntity<TEntity> method.

See Also

GetRelatedEntity Overload
EntityExtensions Class
Microsoft.Xrm.Client Namespace

Return to top