Condividi tramite


EntityExtensions.GetRelatedEntity Metodo (Entity, OrganizationServiceContext, Relationship)

Si applica a: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Retrieves the related entity for a specific relationship.

Spazio dei nomi: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Uso

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

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

Sintassi

'Dichiarazione
<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
)

Parametri

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

Valore restituito

Type: Entity
The related entity for a specific relationship.

Note

Extends the core GetRelatedEntity method.

Thread Safety

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è garantito che i membri di istanza siano thread-safe.

Piattaforme

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

Vedere anche

Riferimento

Classe EntityExtensions
Membri EntityExtensions
Spazio dei nomi Microsoft.Xrm.Client

Altre risorse

Developer Extensions for Microsoft Dynamics CRM

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