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