Compartilhar via


FileBackedMetadataCatalog.ImportPackage Method (String)

Imports the specified BDC model to the metadata store with default options.

Namespace:  Microsoft.SharePoint.BusinessData.MetadataModel
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function ImportPackage ( _
    xml As String _
) As String()
'Usage
Dim instance As FileBackedMetadataCatalog
Dim xml As String
Dim returnValue As String()

returnValue = instance.ImportPackage(xml)
public string[] ImportPackage(
    string xml
)

Parameters

Return Value

Type: []
A list of messages about errors and warnings that occurred during the import process.

Remarks

This method imports a BDC metadata model with properties, localized names, and access control entries. This method does not import proxies.

Object instances obtained from an instance of FileBackedMetadataCatalog can only be used with object instances obtained from the same instance of FileBackedMetadataCatalog. Using incompatible object instances with each other causes data corruption and other unexpected behavior.

See Also

Reference

FileBackedMetadataCatalog Class

FileBackedMetadataCatalog Members

ImportPackage Overload

Microsoft.SharePoint.BusinessData.MetadataModel Namespace