IDataClass.Execute Method (IMethodInstance, ILobSystemInstance)
Executes the given method instance against a given external system instance.
Namespace: Microsoft.BusinessData.MetadataModel
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function Execute ( _
methodInstanceToExecute As IMethodInstance, _
lobSystemInstance As ILobSystemInstance _
) As Object
'Usage
Dim instance As IDataClass
Dim methodInstanceToExecute As IMethodInstance
Dim lobSystemInstance As ILobSystemInstance
Dim returnValue As Object
returnValue = instance.Execute(methodInstanceToExecute, _
lobSystemInstance)
Object Execute(
IMethodInstance methodInstanceToExecute,
ILobSystemInstance lobSystemInstance
)
Parameters
methodInstanceToExecute
Type: Microsoft.BusinessData.MetadataModel.IMethodInstanceThe method instance to execute.
lobSystemInstance
Type: Microsoft.BusinessData.MetadataModel.ILobSystemInstanceThe external system instance to execute the method instance against.
Return Value
Type: System.Object
The return value of the method instance.
Remarks
Instances of objects in the Business Data Connectivity object model are tied to the Metadata Store they are obtained from. Using instances tied to one Metadata Store with the instances from another Metadata Store will cause data corruption and other unexpected behavior. For more information, see DatabaseBackedMetadataCatalog, FileBackedMetadataCatalog, and RemoteSharedFileBackedMetadataCatalog.