FileBackedMetadataCatalog.ImportPackage method (String, Boolean, Boolean, Boolean, Boolean, Boolean)
Imports the specified BDC model with the specified options.
Namespace: Microsoft.SharePoint.BusinessData.MetadataModel
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.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.StringThe BDC model to import.
loadModel
Type: System.Booleantrue if the xml input contains a BDC model;false if the xml input contains BDC model resources.
loadLocalizedNames
Type: System.Booleantrue to import localized names; otherwise, false.
loadPermissions
Type: System.Booleantrue toimport access control entries; otherwise, false.
loadProperties
Type: System.Booleantrue to import properties; otherwise, false.
loadInlineProxy
Type: System.Booleantrue 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