Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the association by using the association identifier and the metadata store.
Namespace: Microsoft.SharePoint.BusinessData.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.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.UInt32The identifier of the association.
metadataCatalog
Type: Microsoft.SharePoint.BusinessData.Administration.AdministrationMetadataCatalogThe metadata store.
Return Value
Type: Microsoft.SharePoint.BusinessData.Administration.Association
The requested association.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The metadataCatalog parameter is a null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | The id parameter is equal to zero. |
MetadataObjectNotFoundException | The specified association does not exist in the metadata store. |