다음을 통해 공유


DatabaseBackedMetadataCatalog.GetById Method

Gets the metadata object with the specified ID.

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

Syntax

'Declaration
Public Function GetById ( _
    id As UInteger, _
    metadataObjectType As Type _
) As IMetadataObject
'Usage
Dim instance As DatabaseBackedMetadataCatalog
Dim id As UInteger
Dim metadataObjectType As Type
Dim returnValue As IMetadataObject

returnValue = instance.GetById(id, metadataObjectType)
public IMetadataObject GetById(
    uint id,
    Type metadataObjectType
)

Parameters

  • metadataObjectType
    Type: System.Type

    The metadata object type.

Return Value

Type: Microsoft.BusinessData.MetadataModel.IMetadataObject
A metadata object.

Remarks

Object instances obtained from an instance of DatabaseBackedMetadataCatalog for a BdcServiceApplicationProxy can only be used with object instances obtained from instances of DatabaseBackedMetadataCatalog for the same BdcServiceApplicationProxy. Using incompatible object instances with each other causes data corruption and other unexpected behavior.

See Also

Reference

DatabaseBackedMetadataCatalog Class

DatabaseBackedMetadataCatalog Members

Microsoft.SharePoint.BusinessData.MetadataModel Namespace