共用方式為


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