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.StringName of the method instance.
filterCollection
Type: Microsoft.BusinessData.Runtime.IFilterCollectionThe filters to apply.
lobSystemInstance
Type: Microsoft.BusinessData.MetadataModel.ILobSystemInstanceThe given external system object.
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.