Share via


BdcService.GetAdministrationMetadataCatalog method

Returns the administration Metadata Store for the specified service context.

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

Syntax

'Declaration
Public Function GetAdministrationMetadataCatalog ( _
    serviceContext As SPServiceContext _
) As AdministrationMetadataCatalog
'Usage
Dim instance As BdcService
Dim serviceContext As SPServiceContext
Dim returnValue As AdministrationMetadataCatalog

returnValue = instance.GetAdministrationMetadataCatalog(serviceContext)
public AdministrationMetadataCatalog GetAdministrationMetadataCatalog(
    SPServiceContext serviceContext
)

Parameters

Return value

Type: Microsoft.SharePoint.BusinessData.Administration.AdministrationMetadataCatalog
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: Create an External Content Type Using the Administration Object Model

Code Snippet: Add an Access Control Entry to a MetadataObject Using the Administration Object Model

See also

Reference

BdcService class

BdcService members

Microsoft.SharePoint.BusinessData.SharedService namespace