Share via


BusinessDataCatalogSharedServiceClient.GetModelByName Method

Returns the BDC model with the given name.

Namespace:  [BdcAdminService Web service]
Service reference: http://Site/_vti_bin/BdcAdminService.svc

Syntax

'Declaration
Public Function GetModelByName ( _
    name As String, _
    partitionId As Guid _
) As ModelStruct
'Usage
Dim instance As BusinessDataCatalogSharedServiceClient
Dim name As String
Dim partitionId As Guid
Dim returnValue As ModelStruct

returnValue = instance.GetModelByName(name, _
    partitionId)
public ModelStruct GetModelByName(
    string name,
    Guid partitionId
)

Parameters

  • name
    Type: System.String

    The name of the BDC model to retrieve.

Return Value

Type: Microsoft.SharePoint.BusinessData.SharedService.ModelStruct
The BDC model.

Exceptions

Exception Condition
ArgumentException

A fault exception with ArgumentException as its state is thrown if the length of the specified name exceeds 255 characters.

MetadataObjectNotFoundExceptionState

A fault exception with MetadataObjectNotFoundExceptionState as its state is thrown if the specified model does not exist.

See Also

Reference

BusinessDataCatalogSharedServiceClient Class

BusinessDataCatalogSharedServiceClient Members

BdcAdminService Web Service