EntityExtensions.GetAttributeCollectionValue<T> Method (Entity, String)
Applies To: Dynamics CRM 2013
Gets the attribute collection for a specific attribute of an entity.
Namespace: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static IEnumerable<T> GetAttributeCollectionValue<T>(
this Entity entity,
string attributeLogicalName
)
where T : Entity
public:
generic<typename T>
where T : Entity
[ExtensionAttribute]
static IEnumerable<T>^ GetAttributeCollectionValue(
Entity^ entity,
String^ attributeLogicalName
)
static member GetAttributeCollectionValue<'T when 'T : Entity> :
entity:Entity *
attributeLogicalName:string -> IEnumerable<'T>
<ExtensionAttribute>
Public Shared Function GetAttributeCollectionValue(Of T As Entity) (
entity As Entity,
attributeLogicalName As String
) As IEnumerable(Of T)
Parameters
entity
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The entity instance.
attributeLogicalName
Type: System.StringType: String.
Return Value
Type: System.Collections.Generic.IEnumerable<T>
Type: IEnumerable<T>
The attribute collection for a specific attribute of an entity, where T is an Entity.
Type Parameters
- T
The type, where T is an Entity.
See Also
EntityExtensions Class
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2013
Return to top