FileBackedMetadataCatalog.ImportPackage Method (XmlReader, ParseContext, PackageContents)
Imports a BDC model that is being read by the specified XML reader.
Namespace: Microsoft.SharePoint.BusinessData.MetadataModel
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub ImportPackage ( _
reader As XmlReader, _
context As ParseContext, _
packageContents As PackageContents _
)
'Usage
Dim instance As FileBackedMetadataCatalog
Dim reader As XmlReader
Dim context As ParseContext
Dim packageContents As PackageContents
instance.ImportPackage(reader, context, _
packageContents)
public void ImportPackage(
XmlReader reader,
ParseContext context,
PackageContents packageContents
)
Parameters
reader
Type: System.Xml.XmlReaderThe XML reader that is processing the BDC model.
context
Type: Microsoft.SharePoint.BusinessData.Parser.ParseContextThe context of the import.
packageContents
Type: Microsoft.SharePoint.BusinessData.Parser.PackageContentsImport options that specify the content of the string 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