AbstractEntityInstance.Execute 方法 (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.

命名空间: Microsoft.Office.Server.ApplicationRegistry.Runtime
程序集: Microsoft.SharePoint.Portal (在 microsoft.sharepoint.portal.dll 中)

语法

声明
Public Overrides Function Execute ( _
    methodInstanceToExecute As MethodInstance, _
    lobSystemInstance As LobSystemInstance _
) As Object
用法
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
)

参数

  • 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.

返回值

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

备注

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.

另请参阅

参考

AbstractEntityInstance 类
AbstractEntityInstance 成员
Microsoft.Office.Server.ApplicationRegistry.Runtime 命名空间