LobSystem.ReadXml method
Reads the external system definition from the specified metadata XML for the specified Metadata Store.
Namespace: Microsoft.SharePoint.BusinessData.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function ReadXml ( _
xml As String, _
<OutAttribute> ByRef errors As String(), _
packageContents As PackageContents, _
metadataCatalog As AdministrationMetadataCatalog _
) As LobSystem
'Usage
Dim xml As String
Dim errors As String()
Dim packageContents As PackageContents
Dim metadataCatalog As AdministrationMetadataCatalog
Dim returnValue As LobSystem
returnValue = LobSystem.ReadXml(xml, errors, _
packageContents, metadataCatalog)
public static LobSystem ReadXml(
string xml,
out string[] errors,
PackageContents packageContents,
AdministrationMetadataCatalog metadataCatalog
)
Parameters
xml
Type: System.StringA string containing the metadata XML. The root element of the metadata XML must be the LobSystem Element in LobSystems (BDCMetadata Schema).
errors
Type: []A list of noncritical errors that occurred when reading the XML.
packageContents
Type: Microsoft.SharePoint.BusinessData.Parser.PackageContentsOptions that specify which elements to read.
metadataCatalog
Type: Microsoft.SharePoint.BusinessData.Administration.AdministrationMetadataCatalogThe Metadata Store that this external system is defined in.
Return value
Type: Microsoft.SharePoint.BusinessData.Administration.LobSystem
The external system.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The xml parameter or the metadataCatalog parameter is a null reference (Nothing in Visual Basic). |
ArgumentException | The packageContents parameter does not have the PackageContents.Model value set. |