IInstance.Execute Method (IMethodInstance)
Invokes a method instance.
Namespace: Microsoft.BusinessData.Runtime
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function Execute ( _
methodToExecute As IMethodInstance _
) As Object
'Usage
Dim instance As IInstance
Dim methodToExecute As IMethodInstance
Dim returnValue As Object
returnValue = instance.Execute(methodToExecute)
Object Execute(
IMethodInstance methodToExecute
)
Parameters
methodToExecute
Type: Microsoft.BusinessData.MetadataModel.IMethodInstanceThe method instance to execute.
Return Value
Type: System.Object
The result of the execution.
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.