EntityReference.TryGetEntity method
Gets the external content type pointed to by the reference and returns a a null reference (Nothing in Visual Basic) reference if the external content type is not found.
Namespace: Microsoft.SharePoint.BusinessData.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function TryGetEntity As Entity
'Usage
Dim instance As EntityReference
Dim returnValue As Entity
returnValue = instance.TryGetEntity()
public Entity TryGetEntity()
Return value
Type: Microsoft.SharePoint.BusinessData.Administration.Entity
The external content type.
Remarks
This method provides the same result that you get when you call GetEntity(Boolean) with a Boolean parameter of false.