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