Método Entity.GetRelatedEntities
Aplica-se a: CRM 2015 on-prem, CRM Online
Gets the collection of related entity instances for the specified relationship.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (em Microsoft.Xrm.Sdk.dll)
Sintaxe
'Declaração
Protected Overridable Function GetRelatedEntities(Of TEntity As Entity) ( _
relationshipSchemaName As String, _
primaryEntityRole As Nullable(Of EntityRole) _
) As IEnumerable(Of TEntity)
protected virtual IEnumerable<TEntity> GetRelatedEntities<TEntity> (
string relationshipSchemaName,
Nullable<EntityRole> primaryEntityRole
) where TEntity : Entity
GenericParameters
- TEntity
Type: Entity. The type of the entity.
Parâmetros
- relationshipSchemaName
Type: Cadeia de caracteres. The schema name of the relationship.
- primaryEntityRole
The role of the primary entity in the relationship (referenced or referencing).
Valor de Retorno
Type: IEnumerable
The collection of related entity instances for the specified relationship.
Exemplo
GetRelatedEntities<CampaignResponse>("activity_pointer_campaignresponse", null);
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
Plataformas de desenvolvimento
Windows Vista, Windows Server 2003 e
Plataformas de destino
Windows Vista,Windows XP
Change History
Consulte também
Referência
Classe Entity
Membros de Entity
Namespace Microsoft.Xrm.Sdk
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.