IInstance.Execute Method (IMethodInstance, Object )
Invokes a method instance.
Namespace: Microsoft.BusinessData.Runtime
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function Execute ( _
methodToExecute As IMethodInstance, _
ByRef overrideArgs As Object() _
) As Object
'Usage
Dim instance As IInstance
Dim methodToExecute As IMethodInstance
Dim overrideArgs As Object()
Dim returnValue As Object
returnValue = instance.Execute(methodToExecute, _
overrideArgs)
Object Execute(
IMethodInstance methodToExecute,
ref Object[] overrideArgs
)
Parameters
methodToExecute
Type: Microsoft.BusinessData.MetadataModel.IMethodInstanceThe method instance to execute.
overrideArgs
Type: []The array of override arguments.
Return Value
Type: System.Object
The object that is returned by the method.
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.