Share via


AdministrationMetadataCatalog.GetModels method

Gets the collection of metadata models whose names match the specified wildcard name.

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

Syntax

'Declaration
Public Function GetModels ( _
    wildcardedName As String _
) As ModelCollection
'Usage
Dim instance As AdministrationMetadataCatalog
Dim wildcardedName As String
Dim returnValue As ModelCollection

returnValue = instance.GetModels(wildcardedName)
public ModelCollection GetModels(
    string wildcardedName
)

Parameters

  • wildcardedName
    Type: System.String

    The name that uses a wildcard.

Return value

Type: Microsoft.SharePoint.BusinessData.Administration.ModelCollection
The specified model collection.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

BDC uses '*' as the wildcard character and the '\' as the escape character. For example, to obtain all models which have names starting with "C", and ending with "s*12", this method should be called with "C*s\*12". This will return both "Customers*12" and "Cs*12", but not "CratesOf12" or "Cs\*12".

See also

Reference

AdministrationMetadataCatalog class

AdministrationMetadataCatalog members

Microsoft.SharePoint.BusinessData.Administration namespace