BusinessDataCatalogSharedServiceClient.GetModelsByName Method
Returns the BDC models whose names or localized names match the specified wildcard name.
Namespace: [BdcAdminService Web service]
Service reference: http://Site/_vti_bin/BdcAdminService.svc
Syntax
'Declaration
Public Function GetModelsByName ( _
wildcardedName As String, _
callerCultureLcid As Integer, _
partitionId As Guid _
) As ModelStruct()
'Usage
Dim instance As BusinessDataCatalogSharedServiceClient
Dim wildcardedName As String
Dim callerCultureLcid As Integer
Dim partitionId As Guid
Dim returnValue As ModelStruct()
returnValue = instance.GetModelsByName(wildcardedName, _
callerCultureLcid, partitionId)
public ModelStruct[] GetModelsByName(
string wildcardedName,
int callerCultureLcid,
Guid partitionId
)
Parameters
wildcardedName
Type: System.StringThe model name using a wildcard.
callerCultureLcid
Type: System.Int32The LCID of the locale to be used when retrieving the models.
partitionId
Type: System.GuidA Guid.Empty value.
Return Value
Type: []
The BDC models.
Exceptions
Exception | Condition |
---|---|
ArgumentException | A fault exception with ArgumentException as its state is thrown if the length of the specified wildcard name exceeds 255 characters or the format of the specified wildcard is invalid. |
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
BusinessDataCatalogSharedServiceClient Class