Share via


RemoteSharedFileBackedMetadataCatalog.PreConnectionLost event

Indicates that the connection to the BCS host process has been lost.

Namespace:  Microsoft.Office.BusinessData.MetadataModel
Assembly:  Microsoft.Office.BusinessApplications.Runtime (in Microsoft.Office.BusinessApplications.Runtime.dll)

Syntax

'Declaration
Public Event PreConnectionLost As EventHandler
'Usage
Dim instance As RemoteSharedFileBackedMetadataCatalog
Dim handler As EventHandler

AddHandler instance.PreConnectionLost, handler
public event EventHandler PreConnectionLost

Remarks

When this event is received all objects obtained from the remote process are invalid. The application should discard the remote objects. The application should not request new objects until the ConnectionLost event is received.

Object instances obtained from an instance of RemoteSharedFileBackedMetadataCatalog can only be used with object instances obtained from the same instance of RemoteSharedFileBackedMetadataCatalog. Using incompatible object instances with each other causes data corruption and other unexpected behavior.

Warning

Interaction with the BCS host process after the PreConnectionLost event is received and before ConnectionLost event is received may cause unexpected results.

See also

Reference

RemoteSharedFileBackedMetadataCatalog class

RemoteSharedFileBackedMetadataCatalog members

Microsoft.Office.BusinessData.MetadataModel namespace

ConnectionAcquired

ConnectionLost