Share via


AssociationGroupAssociationReference.TryGetAssociation method

Gets the association.

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

Syntax

'Declaration
Public Overrides Function TryGetAssociation As Association
'Usage
Dim instance As AssociationGroupAssociationReference
Dim returnValue As Association

returnValue = instance.TryGetAssociation()
public override Association TryGetAssociation()

Return value

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

Exceptions

Exception Condition
ObjectDisposedException

The AssociationGroupAssociationReference is disposed.

Remarks

If the external content type containing the Association is not available, or the referenced external content type does not contain the Association, this method returns a null reference.

See also

Reference

AssociationGroupAssociationReference class

AssociationGroupAssociationReference members

Microsoft.SharePoint.BusinessData.Administration namespace