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 Action 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 Action
'Usage
Dim xml As String
Dim errors As String()
Dim packageContents As PackageContents
Dim entity As Entity
Dim returnValue As Action
returnValue = Action.ReadXml(xml, errors, _
packageContents, entity)
public static Action ReadXml(
string xml,
out string[] errors,
PackageContents packageContents,
Entity entity
)
Parameters
xml
Type: System.StringA string containing the metadata XML. The root element of the metadata XML must be the Action Element in Actions (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.
entity
Type: Microsoft.SharePoint.BusinessData.Administration.EntityThe parent external content type that this Action is defined in.
Return Value
Type: Microsoft.SharePoint.BusinessData.Administration.Action
The Action.
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. |