FileBackedMetadataCatalog.ImportPackage method (String)
Imports the specified BDC model to the metadata store with default options.
Namespace: Microsoft.SharePoint.BusinessData.MetadataModel
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function ImportPackage ( _
xml As String _
) As String()
'Usage
Dim instance As FileBackedMetadataCatalog
Dim xml As String
Dim returnValue As String()
returnValue = instance.ImportPackage(xml)
public string[] ImportPackage(
string xml
)
Parameters
xml
Type: System.StringThe BDC model to import.
Return value
Type: []
A list of messages about errors and warnings that occurred during the import process.
Remarks
This method imports a BDC metadata model with properties, localized names, and access control entries. This method does not import proxies.
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