MetadataObjectNotFoundException class
Throws an exception if the requested metadata object cannot be found in the Business Data Connectivity (BDC) service metadata store.
Inheritance hierarchy
System.Object
System.Exception
Microsoft.SharePoint.BusinessData.Administration.MetadataException
Microsoft.SharePoint.BusinessData.Administration.MetadataObjectNotFoundException
Namespace: Microsoft.SharePoint.BusinessData.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<SerializableAttribute> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class MetadataObjectNotFoundException _
Inherits MetadataException
'Usage
Dim instance As MetadataObjectNotFoundException
[SerializableAttribute]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class MetadataObjectNotFoundException : MetadataException
Remarks
Typically, the methods GetById or GetByName throw this exception. Also, methods such as MethodInstance.GetDataClass can throw it in extreme cases; this is typically not seen and points to a corruption of the run-time memory.
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.