BusinessDataCatalogSharedServiceClient.ExportPackage Method
Exports the specified BDC model from the Metadata Store.
Namespace: [BdcAdminService Web service]
Service reference: http://Site/_vti_bin/BdcAdminService.svc
Syntax
'Declaration
Public Function ExportPackage ( _
modelStruct As ModelStruct, _
packageContents As PackageContents, _
settingId As String _
) As String
'Usage
Dim instance As BusinessDataCatalogSharedServiceClient
Dim modelStruct As ModelStruct
Dim packageContents As PackageContents
Dim settingId As String
Dim returnValue As String
returnValue = instance.ExportPackage(modelStruct, _
packageContents, settingId)
public string ExportPackage(
ModelStruct modelStruct,
PackageContents packageContents,
string settingId
)
Parameters
modelStruct
Type: Microsoft.SharePoint.BusinessData.SharedService.ModelStructThe model to export. The partition of this model must be the empty Guid.
packageContents
Type: Microsoft.SharePoint.BusinessData.Parser.PackageContentsOptions that specify what kind of data to retrieve.
settingId
Type: System.StringThe identifier of a partition in the Metadata Store to export properties, localized names, and access control entries from.
Return Value
Type: System.String
The XML representation of the metadata model that contains the specified data.
Exceptions
Exception | Condition |
---|---|
AccessDeniedExceptionState | A fault exception with AccessDeniedExceptionState as its state is thrown if the security principal is not authorized to perform this operation. |
ArgumentException | A fault exception with ArgumentException as its state is thrown if "InlineProxies" is specified but the "Model" value also is not specified for the packageContents parameter, or the given model is a null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | A fault exception with ArgumentOutOfRangeException as its state is thrown if the MetadataObjectId of the given model is 0. |
MetadataObjectNotFoundExceptionState | A fault exception with MetadataObjectNotFoundExceptionState as its state is thrown if the specified model or other metadata objects to be exported do not exist. |
See Also
Reference
BusinessDataCatalogSharedServiceClient Class