Partilhar via


AdministrationMetadataCatalog.GetModel Method

Gets the metadata model using the specified name.

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

Syntax

'Declaration
Public Function GetModel ( _
    name As String _
) As Model
'Usage
Dim instance As AdministrationMetadataCatalog
Dim name As String
Dim returnValue As Model

returnValue = instance.GetModel(name)
public Model GetModel(
    string name
)

Parameters

Return Value

Type: Microsoft.SharePoint.BusinessData.Administration.Model
The metadata model.

Exceptions

Exception Condition
ArgumentNullException

The name parameter is a null reference (Nothing in Visual Basic).

ArgumentException

The name contains more than 255 characters.

MetadataObjectNotFoundException

The external content type does not exist in the Metadata Store.

See Also

Reference

AdministrationMetadataCatalog Class

AdministrationMetadataCatalog Members

Microsoft.SharePoint.BusinessData.Administration Namespace