Aracılığıyla paylaş


BusinessDataCatalogSharedServiceClient.ImportPackageWithProgress Method

Imports the specified BDC model or BDC model resources to the Metadata Store and tracks the progress of this operation using the specified identifier.

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

Syntax

'Declaration
Public Function ImportPackageWithProgress ( _
    <OutAttribute> ByRef errors As String(), _
    xml As String, _
    packageContents As PackageContents, _
    adminStruct As AdministrationMetadataCatalogStruct, _
    settingId As String, _
    callerCultureLcid As Integer, _
    updateModel As Boolean, _
    jobId As Guid _
) As ModelStruct
'Usage
Dim instance As BusinessDataCatalogSharedServiceClient
Dim errors As String()
Dim xml As String
Dim packageContents As PackageContents
Dim adminStruct As AdministrationMetadataCatalogStruct
Dim settingId As String
Dim callerCultureLcid As Integer
Dim updateModel As Boolean
Dim jobId As Guid
Dim returnValue As ModelStruct

returnValue = instance.ImportPackageWithProgress(errors, _
    xml, packageContents, adminStruct, _
    settingId, callerCultureLcid, updateModel, _
    jobId)
public ModelStruct ImportPackageWithProgress(
    out string[] errors,
    string xml,
    PackageContents packageContents,
    AdministrationMetadataCatalogStruct adminStruct,
    string settingId,
    int callerCultureLcid,
    bool updateModel,
    Guid jobId
)

Parameters

  • errors
    Type: []

    A list of noncritical errors that occurred when merging data or reading the XML.

  • xml
    Type: System.String

    The XML representation of the BDC model.

  • settingId
    Type: System.String

    The identifier of a partition in the Metadata Store to create properties, localized names, and access control entries in.

  • callerCultureLcid
    Type: System.Int32

    The LCID of to the locale in which the error messages are to be returned.

  • updateModel
    Type: System.Boolean

    true to update the model if it already exists in the Metadata Store; otherwise, false . This parameter is ignored if packageContents does not have the PackageContents.Model value specified.

  • jobId
    Type: System.Guid

    A unique identifier for this import operation.

Return Value

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

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.

PackageFormatExceptionState

A fault exception with PackageFormatExceptionState as its state is thrown if the specified metadata model XML format is invalid or an error occurred while importing the BDC model.

Remarks

The adminStruct parameter required by this method can be obtained by creating a new instance of the AdministrationMetadataCatalogStruct class.

You can call GetImportProgress(Guid, Guid) with the jobId value passed to this method to get the progress of the import operation.

See Also

Reference

BusinessDataCatalogSharedServiceClient Class

BusinessDataCatalogSharedServiceClient Members

BdcAdminService Web Service