FileBackedMetadataCatalog.ImportPackage Method (String, Boolean, Boolean, Boolean, Boolean, Boolean)
Imports the specified BDC model with the specified options.
Namespace: Microsoft.Office.BusinessData.MetadataModel
Assembly: Microsoft.Office.BusinessData (in Microsoft.Office.BusinessData.dll)
Syntax
'Declaration
Public Function ImportPackage ( _
xml As String, _
loadModel As Boolean, _
loadLocalizedNames As Boolean, _
loadPermissions As Boolean, _
loadProperties As Boolean, _
loadInlineProxy As Boolean _
) As String()
'Usage
Dim instance As FileBackedMetadataCatalog
Dim xml As String
Dim loadModel As Boolean
Dim loadLocalizedNames As Boolean
Dim loadPermissions As Boolean
Dim loadProperties As Boolean
Dim loadInlineProxy As Boolean
Dim returnValue As String()
returnValue = instance.ImportPackage(xml, _
loadModel, loadLocalizedNames, loadPermissions, _
loadProperties, loadInlineProxy)
public string[] ImportPackage(
string xml,
bool loadModel,
bool loadLocalizedNames,
bool loadPermissions,
bool loadProperties,
bool loadInlineProxy
)
Parameters
- xml
Type: System.String
The BDC model to import.
- loadModel
Type: System.Boolean
true if the xml input contains a BDC model;false if the xml input contains BDC model resources.
- loadLocalizedNames
Type: System.Boolean
true to import localized names; otherwise, false.
- loadPermissions
Type: System.Boolean
true toimport access control entries; otherwise, false.
- loadProperties
Type: System.Boolean
true to import properties; otherwise, false.
- loadInlineProxy
Type: System.Boolean
true to import inline proxies; otherwise, false.
Return Value
Type: []
A list of messages about errors and warnings that occurred during the import process.
Remarks
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