Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reads the external content type definition from the specified metadata XML for the specified parent external content type.
Namespace: Microsoft.SharePoint.BusinessData.Administration.Client
Assembly: Microsoft.SharePoint.BusinessData.Administration.Client (in Microsoft.SharePoint.BusinessData.Administration.Client.dll)
Syntax
'Declaration
Public Shared Function ReadXml ( _
xml As String, _
<OutAttribute> ByRef errors As String(), _
packageContents As PackageContents, _
lobSystem As LobSystem, _
model As Model _
) As Entity
'Usage
Dim xml As String
Dim errors As String()
Dim packageContents As PackageContents
Dim lobSystem As LobSystem
Dim model As Model
Dim returnValue As Entity
returnValue = Entity.ReadXml(xml, errors, _
packageContents, lobSystem, model)
public static Entity ReadXml(
string xml,
out string[] errors,
PackageContents packageContents,
LobSystem lobSystem,
Model model
)
Parameters
xml
Type: System.StringA string containing the metadata XML. The root element of the metadata XML must be the Entity Element in Entities (BDCMetadata Schema).
errors
Type: []A list of noncritical errors that occurred when reading the XML.
packageContents
Type: Microsoft.SharePoint.BusinessData.Administration.Client.Parser.PackageContentsOptions that specify which elements to read.
lobSystem
Type: Microsoft.SharePoint.BusinessData.Administration.Client.LobSystemThe external system.
model
Type: Microsoft.SharePoint.BusinessData.Administration.Client.ModelThe metadata model.
Return Value
Type: Microsoft.SharePoint.BusinessData.Administration.Client.Entity
The external content type.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The xml parameter or the lobSystem parameter is a null reference (Nothing in Visual Basic). |
| ArgumentException | The packageContents parameter does not have the PackageContents.Model value set. |
See Also
Reference
Microsoft.SharePoint.BusinessData.Administration.Client Namespace