EntityExtensions.GetAttributeValue<T> Method (Entity, String)
Applies To: Dynamics CRM 2013
Retrieves the value of an attribute.
Namespace: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static T GetAttributeValue<T>(
this Entity entity,
string attributeLogicalName
)
public:
generic<typename T>
[ExtensionAttribute]
static T GetAttributeValue(
Entity^ entity,
String^ attributeLogicalName
)
static member GetAttributeValue<'T> :
entity:Entity *
attributeLogicalName:string -> 'T
<ExtensionAttribute>
Public Shared Function GetAttributeValue(Of T) (
entity As Entity,
attributeLogicalName As String
) As T
Parameters
entity
Type: Microsoft.Xrm.Sdk.EntityType: Entity. The entity instance.
attributeLogicalName
Type: System.StringType: String. The logical name of the attribute.
Return Value
Type: T
Type: Object
The value of the attribute.
Type Parameters
- T
The type, where T is an Entity.
Remarks
Extends the core GetAttributeValue<T> method.
See Also
GetAttributeValue Overload
EntityExtensions Class
Microsoft.Xrm.Client Namespace
Return to top