共用方式為


AssociationCardinalityMismatchError Class

Represents an activation error that indicates that the cardinality of the association does not match the configuration of the foreign identifiers.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.BusinessData.Administration.ActivationError
    Microsoft.SharePoint.BusinessData.Administration.MethodError
      Microsoft.SharePoint.BusinessData.Administration.AssociationCardinalityMismatchError

Namespace:  Microsoft.SharePoint.BusinessData.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Class AssociationCardinalityMismatchError _
    Inherits MethodError
'Usage
Dim instance As AssociationCardinalityMismatchError
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public class AssociationCardinalityMismatchError : MethodError

Remarks

This error can be caused by one of the following scenarios:

  1. The foreign identifier is on the source entity, but the association returns multiple items.

  2. The foreign identifier is on the destination entity, but the association returns a single item.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

AssociationCardinalityMismatchError Members

Microsoft.SharePoint.BusinessData.Administration Namespace