Refresh Method

Clears the internal memory cache, including the cached database information. This method is intended only for development use, specifically to have the Axapta object reread the Microsoft Dynamics AX application code. As Refresh clears the internal cache, it is not recommended that this method be called every time a user logs on to a Web site. Calling Refresh would greatly decrease the performance time of the Web site.

Namespace:  Microsoft.Dynamics.BusinessConnectorNet
Assembly:  Microsoft.Dynamics.BusinessConnectorNet (in Microsoft.Dynamics.BusinessConnectorNet.dll)

Syntax

'Declaration
Public Sub Refresh
'Usage
Dim instance As Axapta

instance.Refresh()
public void Refresh()
public:
void Refresh()

Exceptions

Exception Condition
BusinessConnectorException

An unexpected error has occurred with the Business Connector.

NotLoggedOnException

The requested operation cannot be performed because the user is not logged on to Microsoft Dynamics AX.

Remarks

You may experience a cache issue for data entered in the UI in an application that accesses Microsoft Dynamics AX with .NET Business Connector. Call the Refresh method or restart the service that is running the code.

See Also

Reference

Axapta Class

Microsoft.Dynamics.BusinessConnectorNet Namespace