IEntityInstance.SwitchView Method (String, Boolean)
Gets a different view of the external instance, with an option to do a delayed call to the external system.
Namespace: Microsoft.BusinessData.Runtime
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function SwitchView ( _
specificFinderName As String, _
readNow As Boolean _
) As IEntityInstance
'Usage
Dim instance As IEntityInstance
Dim specificFinderName As String
Dim readNow As Boolean
Dim returnValue As IEntityInstance
returnValue = instance.SwitchView(specificFinderName, _
readNow)
IEntityInstance SwitchView(
string specificFinderName,
bool readNow
)
Parameters
specificFinderName
Type: System.StringThe name of the specific finder to invoke to the the alternate view.
readNow
Type: System.Booleantrue if the new instance will be read immediately; false if it will be read when data is required.
Return Value
Type: Microsoft.BusinessData.Runtime.IEntityInstance
Same External Item with the given specific finders view.
Remarks
This method will invoke the given specific finder to get the view requested. It can be used to refresh an External Item.