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
name
Type: System.StringThe name of the model.
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