Partilhar via


Método EntityExtensions.GetRelatedEntity (Entity, OrganizationServiceContext, Relationship)

Aplica-se a: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Retrieves the related entity for a specific relationship.

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

Uso

'Uso
Dim entity As Entity
Dim context As OrganizationServiceContext
Dim relationship As Relationship
Dim returnValue As Entity

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

Sintaxe

'Declaração
<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
)

Parâmetros

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

Valor de Retorno

Type: Entity
The related entity for a specific relationship.

Comentários

Extends the core GetRelatedEntity method.

Segurança do Thread

Todos os membros estáticos (Shared in Visual Basic) desse tipo são protegidos por thread. Não há nenhum garantia de que os membros de instância sejam protegidos por thread.

Plataformas

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

Consulte também

Referência

Classe EntityExtensions
Membros de EntityExtensions
Namespace Microsoft.Xrm.Client

Outros recursos

Developer Extensions for Microsoft Dynamics CRM

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