Compartir a través de


: AbstractEntityInstance.Execute (Método) (MethodInstance, LobSystemInstance) (Microsoft.Office.Server.ApplicationRegistry.Runtime)

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

Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)

Sintaxis

'Declaración
Public Overrides Function Execute ( _
    methodInstanceToExecute As MethodInstance, _
    lobSystemInstance As LobSystemInstance _
) As Object
'Uso
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
)

Parámetros

  • methodInstanceToExecute
    The MethodInstance object that represents the logic in the backend that we want to execute on this entity instance.
  • lobSystemInstance
    The LobSystemInstance object that this entity instance was created from.

Valor devuelto

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

Comentarios

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.

Vea también

Referencia

AbstractEntityInstance (Clase)
AbstractEntityInstance (Miembros)
Microsoft.Office.Server.ApplicationRegistry.Runtime (Espacio de nombres)