AbstractEntityInstance.Execute Method (MethodInstance, LobSystemInstance)

Executes a specified method instance on the entity instance. . The IDs of the entity instance are plumbed into the API of the backend.

Namespace:  Microsoft.Office.Server.ApplicationRegistry.Runtime
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
Public Overrides Function Execute ( _
    methodInstanceToExecute As MethodInstance, _
    lobSystemInstance As LobSystemInstance _
) As Object
'Usage
Dim instance As AbstractEntityInstance
Dim methodInstanceToExecute As MethodInstance
Dim lobSystemInstance As LobSystemInstance
Dim returnValue As Object

returnValue = instance.Execute(methodInstanceToExecute, _
    lobSystemInstance)
public override Object Execute(
    MethodInstance methodInstanceToExecute,
    LobSystemInstance lobSystemInstance
)

Parameters

Return Value

Type: System.Object
An object that represents the entity instances returned when the back-end method is invoked.

Implements

IInstance.Execute(MethodInstance, LobSystemInstance)

Remarks

There are two places in the Business Data Catalog where you can execute code in a backend system: on the Entity, and on the instance of an Entity. These two methods of execution correspond to static and instance methods in C# or other object oriented programming languages. Calling .Execute on an Entity essentially requires the user to pass in parameters that mirror the underlying backend API. Calling .Execute on an instance of an Entity causes the Business Data Catalog to automatically plumb the value of the identifiers of the instance of the Entity into the appropriate slots in the backend API, eliminating the need for the end user to provide that information or set up those parameters.

See Also

Reference

AbstractEntityInstance Class

AbstractEntityInstance Members

Execute Overload

Microsoft.Office.Server.ApplicationRegistry.Runtime Namespace