FileBackedMetadataCatalog.ImportPackage method (String, ParseContext, PackageContents)

Imports the specified BDC model with the specified options.

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

Syntax

'Declaration
Public Sub ImportPackage ( _
    xml As String, _
    context As ParseContext, _
    packageContents As PackageContents _
)
'Usage
Dim instance As FileBackedMetadataCatalog
Dim xml As String
Dim context As ParseContext
Dim packageContents As PackageContents

instance.ImportPackage(xml, context, packageContents)
public void ImportPackage(
    string xml,
    ParseContext context,
    PackageContents packageContents
)

Parameters

Remarks

ParseContext can be used to get messages about the errors and warnings encountered during the import process.

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.

Examples

Code Snippet: Get the FileBackedMetadataCatalog on the Server or Client

See also

Reference

FileBackedMetadataCatalog class

FileBackedMetadataCatalog members

ImportPackage overload

Microsoft.SharePoint.BusinessData.MetadataModel namespace