Share via


EntityReference.GetEntity method

Gets the external content type.

Namespace:  Microsoft.SharePoint.BusinessData.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetEntity As Entity
'Usage
Dim instance As EntityReference
Dim returnValue As Entity

returnValue = instance.GetEntity()
public Entity GetEntity()

Return value

Type: Microsoft.SharePoint.BusinessData.Administration.Entity

The external content type.

Exceptions

Exception Condition
MetadataObjectNotFoundException

The external content type cannot be found.

ArgumentException

If the name or namespace contains more than 255 characters.

See also

Reference

EntityReference class

EntityReference members

GetEntity overload

Microsoft.SharePoint.BusinessData.Administration namespace