ActionParameter.ReadXml Method
Reads the ActionParameter definition from the specified metadata XML for the specified action.
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, _
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.Administration.Client.Parser.PackageContentsOptions that specify which elements to read.
action
Type: Microsoft.SharePoint.BusinessData.Administration.Client.ActionThe parent action that this ActionParameter is defined in.
Return Value
Type: Microsoft.SharePoint.BusinessData.Administration.Client.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. |
See Also
Reference
Microsoft.SharePoint.BusinessData.Administration.Client Namespace