Share via


Identifier.ReadXml method

Reads the Identifier definition from the specified metadata XML for the specified external content type.

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, _
    entity As Entity _
) As Identifier
'Usage
Dim xml As String
Dim errors As String()
Dim packageContents As PackageContents
Dim entity As Entity
Dim returnValue As Identifier

returnValue = Identifier.ReadXml(xml, errors, _
    packageContents, entity)
public static Identifier ReadXml(
    string xml,
    out string[] errors,
    PackageContents packageContents,
    Entity entity
)

Parameters

  • errors
    Type: []

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

Return value

Type: Microsoft.SharePoint.BusinessData.Administration.Identifier
The Identifier.

Exceptions

Exception Condition
ArgumentNullException

The xml parameter or the entity parameter is a null reference (Nothing in Visual Basic).

ArgumentException

The packageContents parameter does not have the PackageContents.Model value set.

See also

Reference

Identifier class

Identifier members

Microsoft.SharePoint.BusinessData.Administration namespace