다음을 통해 공유


LobSystemInstance.ReadXml Method

Reads the external system instance definition from the specified metadata XML for the specified external system.

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, _
    lobSystem As LobSystem _
) As LobSystemInstance
'Usage
Dim xml As String
Dim errors As String()
Dim packageContents As PackageContents
Dim lobSystem As LobSystem
Dim returnValue As LobSystemInstance

returnValue = LobSystemInstance.ReadXml(xml, errors, _
    packageContents, lobSystem)
public static LobSystemInstance ReadXml(
    string xml,
    out string[] errors,
    PackageContents packageContents,
    LobSystem lobSystem
)

Parameters

  • errors
    Type: []

    A list of noncritical errors that occurred when reading the XML.

Return Value

Type: Microsoft.SharePoint.BusinessData.Administration.LobSystemInstance
The external system instance.

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

LobSystemInstance Class

LobSystemInstance Members

Microsoft.SharePoint.BusinessData.Administration Namespace