AdministrationMetadataCatalog.GetEntities method

Gets a collection of external content types from the Metadata Store.

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

Syntax

'Declaration
Public Function GetEntities ( _
    wildcardedNamespace As String, _
    wildcardedName As String, _
    activeOnly As Boolean _
) As EntityCollection
'Usage
Dim instance As AdministrationMetadataCatalog
Dim wildcardedNamespace As String
Dim wildcardedName As String
Dim activeOnly As Boolean
Dim returnValue As EntityCollection

returnValue = instance.GetEntities(wildcardedNamespace, _
    wildcardedName, activeOnly)
public EntityCollection GetEntities(
    string wildcardedNamespace,
    string wildcardedName,
    bool activeOnly
)

Parameters

  • wildcardedNamespace
    Type: System.String

    The namespace to look for when getting the external content types. This parameter accepts the wildcard character (*).

  • wildcardedName
    Type: System.String

    The name to look for when getting the external content types. This parameter accepts the wildcard character (*).

  • activeOnly
    Type: System.Boolean

    true if only active versions of the matching external content types will be returned; otherwise, all versions will be returned.

Return value

Type: Microsoft.SharePoint.BusinessData.Administration.EntityCollection
An external content type collection.

Exceptions

Exception Condition
ArgumentNullException

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

ArgumentException

The wildcardedNamespace or wildcardedName contains more than 255 characters.

Remarks

BDC uses '*' as the wildcard character and the '\' as the escape character. For example, to obtain all external content types 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