Condividi tramite


Association.ReadXml Method

Reads the Association definition from the specified metadata XML for the specified 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 Association
'Usage
Dim xml As String
Dim errors As String()
Dim packageContents As PackageContents
Dim method As Method
Dim returnValue As Association

returnValue = Association.ReadXml(xml, errors, _
    packageContents, method)
public static Association ReadXml(
    string xml,
    out string[] errors,
    PackageContents packageContents,
    Method method
)

Parameters

  • errors
    Type: []

    A list of noncritical errors that occurred when reading the XML.

Return Value

Type: Microsoft.SharePoint.BusinessData.Administration.Association
The Association.

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.

See Also

Reference

Association Class

Association Members

Microsoft.SharePoint.BusinessData.Administration Namespace