Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
serviceContext
Type: Microsoft.SharePoint.SPServiceContextThe context from which this database should be obtained.
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