EntityExtensions.GetRelatedEntities-metode (Entity, OrganizationServiceContext, Relationship)
Gælder for: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online
Retrieves the collection of related entities for a specific relationship.
Navneområde: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (i Microsoft.Xrm.Client.dll)
Brug
'Brug
Dim entity As Entity
Dim context As OrganizationServiceContext
Dim relationship As Relationship
Dim returnValue As IEnumerable(Of Entity)
returnValue = EntityExtensions.GetRelatedEntities(entity, context, relationship)
Syntaks
'Deklaration
<ExtensionAttribute> _
Public Shared Function GetRelatedEntities ( _
entity As Entity, _
context As OrganizationServiceContext, _
relationship As Relationship _
) As IEnumerable(Of Entity)
[ExtensionAttribute]
public static IEnumerable<Entity> GetRelatedEntities (
Entity entity,
OrganizationServiceContext context,
Relationship relationship
)
Parametre
- entity
Type: Entity. The entity instance.
- context
Type: OrganizationServiceContext. The service context.
- relationship
Type: Relationship. The relationship instance.
Returværdi
Type: IEnumerable<Entity>
The collection of related entities for the relationship.
Bemærkninger
Extends the core GetRelatedEntities method.
Sikkerhed i tråd
Alle offentlige statiske (Shared i Visual Basic) medlemmer af denne type er trådsikret. Alle medlemmer af forekomsten er ikke garanteret trådsikkerhed.
Platforme
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
Se også
Reference
EntityExtensions-klasse
EntityExtensions-medlemmer
Microsoft.Xrm.Client-navneområde
Andre ressourcer
Developer Extensions for Microsoft Dynamics CRM
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.