FileBackedMetadataCatalog.SubscribeOnPreGenerateProxyAssemblyBytes method

Registers the given delegate to be called before a proxy is generated for an external system.

Namespace:  Microsoft.SharePoint.BusinessData.MetadataModel
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub SubscribeOnPreGenerateProxyAssemblyBytes ( _
    onPreGenerateProxyAssemblyBytesDelegate As OnPreGenerateProxyAssemblyBytes _
)
'Usage
Dim instance As FileBackedMetadataCatalog
Dim onPreGenerateProxyAssemblyBytesDelegate As OnPreGenerateProxyAssemblyBytes

instance.SubscribeOnPreGenerateProxyAssemblyBytes(onPreGenerateProxyAssemblyBytesDelegate)
public void SubscribeOnPreGenerateProxyAssemblyBytes(
    OnPreGenerateProxyAssemblyBytes onPreGenerateProxyAssemblyBytesDelegate
)

Parameters

Remarks

The application can register for this event to manage the proxies of the external systems generated by BDC. When the delegate function is called, the application can store the bytes of the proxy in a secure location to be retrieved later when it is requested. This allows the application to improve the start-up performance, as proxy generation may potentially take time and the application may not always have the necessary connectivity.

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

See also

Reference

FileBackedMetadataCatalog class

FileBackedMetadataCatalog members

Microsoft.SharePoint.BusinessData.MetadataModel namespace