FileBackedMetadataCatalog.ImportPackage Method (Stream, ParseContext, PackageContents)
Imports the specified BDC model to the metadata store.
Namespace: Microsoft.Office.BusinessData.MetadataModel
Assembly: Microsoft.Office.BusinessData (in Microsoft.Office.BusinessData.dll)
Syntax
'Declaration
Public Sub ImportPackage ( _
stream As Stream, _
context As ParseContext, _
packageContents As PackageContents _
)
'Usage
Dim instance As FileBackedMetadataCatalog
Dim stream As Stream
Dim context As ParseContext
Dim packageContents As PackageContents
instance.ImportPackage(stream, context, _
packageContents)
public void ImportPackage(
Stream stream,
ParseContext context,
PackageContents packageContents
)
Parameters
- stream
Type: System.IO.Stream
The contents of the BDC model to import.
- context
Type: Microsoft.Office.BusinessData.Parser.ParseContext
The context of the import.
- packageContents
Type: Microsoft.Office.BusinessData.Parser.PackageContents
Specifies the content of the stream as well as what parts of the data to import.
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.
See Also
Reference
FileBackedMetadataCatalog Class