Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

LobSystem.MergeXml Method (String, String[], PackageContents, AdministrationMetadataCatalog, String)

Reads the external system definition from the specified resource XML for the specified Metadata Store, and then merges its properties, localized names, and access control entries with the existing external system in the Metadata Store.

Namespace:  Microsoft.SharePoint.BusinessData.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static LobSystem MergeXml(
	string xml,
	out string[] errors,
	PackageContents packageContents,
	AdministrationMetadataCatalog metadataCatalog,
	string settingId


Type: System.String

The metadata.

Type: []

When this method returns, contains a list of noncritical errors that occurred when merging data or reading the XML. This parameter is passed uninitialized.

Type: Microsoft.SharePoint.BusinessData.Parser.PackageContents

Specifies which elements to read.

Type: Microsoft.SharePoint.BusinessData.Administration.AdministrationMetadataCatalog

The Metadata Store in which the external system is defined.

Type: System.String

The identifier (ID) of a partition in the Metadata Store in which to store properties, localized names, and access control entries; null indicates default settings.

Return Value

Type: Microsoft.SharePoint.BusinessData.Administration.LobSystem
The merged external system.


xml or metadataCatalog is null .


The value of the packageContents parameter is PackageContents.Model.


The external system does not exist in the specified Metadata Store.

Use the packageContents parameter to specify which of the resources in the xml parameter to add to the Metadata Store.

If packageContents is PackageContents.Properties, BDC creates all the properties in xml in the specified setting. If a property with the same name exists, it is replaced by the new property. Merging properties requires “Edit” permissions in the specified setting.

If packageContents is PackageContents.LocalizedNames, BDC creates all the localized names in xml in the specified setting. If a localized name with the same LCID exists, it is replaced by the new localized name. Merging localized names requires “Edit” permissions in the specified setting.

If packageContents is PackageContents.Permissions, BDC replaces existing permissions with the new permissions in xml. Merging permissions requires the “SetPermissions” permission in the specified setting.

© 2015 Microsoft