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.String

    The name of the specific finder to invoke to the the alternate view.

  • readNow
    Type: System.Boolean

    true 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.

See Also

Reference

IEntityInstance Interface

IEntityInstance Members

SwitchView Overload

Microsoft.BusinessData.Runtime Namespace