Compartilhar via


FileBackedMetadataCatalog.SubscribeOnPostGenerateProxyAssemblyBytes Method

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

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

Syntax

'Declaration
Public Sub SubscribeOnPostGenerateProxyAssemblyBytes ( _
    onPostGenerateProxyAssemblyBytesDelegate As OnPostGenerateProxyAssemblyBytes _
)
'Usage
Dim instance As FileBackedMetadataCatalog
Dim onPostGenerateProxyAssemblyBytesDelegate As OnPostGenerateProxyAssemblyBytes

instance.SubscribeOnPostGenerateProxyAssemblyBytes(onPostGenerateProxyAssemblyBytesDelegate)
public void SubscribeOnPostGenerateProxyAssemblyBytes(
    OnPostGenerateProxyAssemblyBytes onPostGenerateProxyAssemblyBytesDelegate
)

Parameters

Remarks

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