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 ActionParameter definition from the specified metadata XML for the specified action.
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, _
action As Action _
) As ActionParameter
'Usage
Dim xml As String
Dim errors As String()
Dim packageContents As PackageContents
Dim action As Action
Dim returnValue As ActionParameter
returnValue = ActionParameter.ReadXml(xml, errors, _
packageContents, action)
public static ActionParameter ReadXml(
string xml,
out string[] errors,
PackageContents packageContents,
Action action
)
Parameters
xml
Type: System.StringA string containing the metadata XML. The root element of the metadata XML must be the ActionParameter Element in ActionParameters (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.
action
Type: Microsoft.SharePoint.BusinessData.Administration.ActionThe parent action that this ActionParameter is defined in.
Return Value
Type: Microsoft.SharePoint.BusinessData.Administration.ActionParameter
The ActionParameter.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The xml parameter or the action parameter is a null reference (Nothing in Visual Basic). |
ArgumentException | The packageContents parameter does not have the PackageContents.Model value set. |