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
id
Type: System.UInt32The metadata object ID.
metadataObjectType
Type: System.TypeThe 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