共用方式為


AssociationReference.TryGetAssociation Method

Attempts to get the Association object.

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

Syntax

'Declaration
Public Overridable Function TryGetAssociation As Association
'Usage
Dim instance As AssociationReference
Dim returnValue As Association

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

Return Value

Type: Microsoft.SharePoint.BusinessData.Administration.Association
The Association object, if the external content type of the Association is available in the metadata; otherwise, it returns a null reference (Nothing in Visual Basic).

See Also

Reference

AssociationReference Class

AssociationReference Members

Microsoft.SharePoint.BusinessData.Administration Namespace