Share via


Association.GetById Method

Gets the Association object by using the association identifier and the metadata catalog.

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

Syntax

'Declaration
Public Shared Function GetById ( _
    id As UInteger, _
    metadataCatalog As AdministrationMetadataCatalog _
) As Association
'Usage
Dim id As UInteger
Dim metadataCatalog As AdministrationMetadataCatalog
Dim returnValue As Association

returnValue = Association.GetById(id, metadataCatalog)
public static Association GetById(
    uint id,
    AdministrationMetadataCatalog metadataCatalog
)

Parameters

  • id
    Type: System.UInt32

    The MetadataObjectId object of the Association.

Return Value

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

The requested Association.

Remarks

This method throws the ArgumentNullException exception if the metadataCatalog object is null. It can also throw ArgumentException if the PackageContents object enumerator is set to Model.

See Also

Reference

Association Class

Association Members

Microsoft.SharePoint.BusinessData.Administration.Client Namespace