Share via


DatabaseBackedMetadataCatalog.CreateExecutionContext method

Creates an execution context.

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

Syntax

'Declaration
Public Function CreateExecutionContext As IExecutionContext
'Usage
Dim instance As DatabaseBackedMetadataCatalog
Dim returnValue As IExecutionContext

returnValue = instance.CreateExecutionContext()
public IExecutionContext CreateExecutionContext()

Return value

Type: Microsoft.BusinessData.Runtime.IExecutionContext
A reference to the execution context.

Implements

IMetadataCatalog.CreateExecutionContext()

Remarks

The execution context can be used to track and modify the behavior of operations against the external system. It also allows direct communication between a custom connector and the application.

Object instances obtained from an instance of DatabaseBackedMetadataCatalog for a BdcServiceApplicationProxy can only be used with object instances obtained from instances of DatabaseBackedMetadataCatalog for the same BdcServiceApplicationProxy. Using incompatible object instances with each other causes data corruption and other unexpected behavior.

See also

Reference

DatabaseBackedMetadataCatalog class

DatabaseBackedMetadataCatalog members

Microsoft.SharePoint.BusinessData.MetadataModel namespace