IMetadataCatalog.GetEntities Method (String, String)
Retrieves external content types in the given namespace and whose names match the specified wildcard string.
Namespace: Microsoft.BusinessData.MetadataModel
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function GetEntities ( _
namespace As String, _
wildcardedName As String _
) As INamedEntityDictionary
'Usage
Dim instance As IMetadataCatalog
Dim namespace As String
Dim wildcardedName As String
Dim returnValue As INamedEntityDictionary
returnValue = instance.GetEntities(namespace, _
wildcardedName)
INamedEntityDictionary GetEntities(
string namespace,
string wildcardedName
)
Parameters
namespace
Type: System.StringThe namespace of the external content types. Namespaces are case sensitive.
wildcardedName
Type: System.StringThe name using a wildcard.
Return Value
Type: Microsoft.BusinessData.MetadataModel.Collections.INamedEntityDictionary
External content types that match the given criteria.
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”.