BdcService.GetDatabaseBackedMetadataCatalog Method (SPServiceContext)

Returns the external system Metadata Store by using the specified SPServiceContext.

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

Syntax

'Declaration
Public Function GetDatabaseBackedMetadataCatalog ( _
    serviceContext As SPServiceContext _
) As DatabaseBackedMetadataCatalog
'Usage
Dim instance As BdcService
Dim serviceContext As SPServiceContext
Dim returnValue As DatabaseBackedMetadataCatalog

returnValue = instance.GetDatabaseBackedMetadataCatalog(serviceContext)
public DatabaseBackedMetadataCatalog GetDatabaseBackedMetadataCatalog(
    SPServiceContext serviceContext
)

Parameters

Return Value

Type: Microsoft.SharePoint.BusinessData.MetadataModel.DatabaseBackedMetadataCatalog
The requested store.

Exceptions

Exception Condition
ArgumentNullException

Thrown when serviceContext is a null reference (Nothing in Visual Basic).

InvalidOperationException

Thrown when accessing the store outside of an authenticated context.

Remarks

A service context maps to exactly one approval workflow and one proxy, which map to exactly one store.

Examples

Code Snippet: Get the DatabaseBackedMetadataCatalog on the Server

Code Snippet: Execute a Finder Method Instance of an External Content Type

Code Snippet: Execute the Associator and Disassociator Method Instances of an External Content Type

Code Snippet: Execute the BulkAssociationNavigator Method Instance of an External Content Type

See Also

Reference

BdcService Class

BdcService Members

GetDatabaseBackedMetadataCatalog Overload

Microsoft.SharePoint.BusinessData.SharedService Namespace