Share via


IEntity.ExecuteScalar Method

Executes a scalar MethodInstance object with the given name, filters values, and the given LobSystemInstance object, and returns the result.

Namespace:  Microsoft.BusinessData.MetadataModel
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Function ExecuteScalar ( _
    methodInstanceName As String, _
    filterCollection As IFilterCollection, _
    lobSystemInstance As ILobSystemInstance _
) As Object
'Usage
Dim instance As IEntity
Dim methodInstanceName As String
Dim filterCollection As IFilterCollection
Dim lobSystemInstance As ILobSystemInstance
Dim returnValue As Object

returnValue = instance.ExecuteScalar(methodInstanceName, _
    filterCollection, lobSystemInstance)
Object ExecuteScalar(
    string methodInstanceName,
    IFilterCollection filterCollection,
    ILobSystemInstance lobSystemInstance
)

Parameters

  • methodInstanceName
    Type: System.String

    Name of the method instance.

Return Value

Type: System.Object
The result object.

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.

See Also

Reference

IEntity Interface

IEntity Members

Microsoft.BusinessData.MetadataModel Namespace