Entity.SwitchActive Method (IList<Entity>, AdministrationMetadataCatalog)

Deactivates the previously active version of the specified external content types, and activates the version represented by the specified external content types.

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

Syntax

'Declaration
Public Shared Function SwitchActive ( _
    entities As IList(Of Entity), _
    catalog As AdministrationMetadataCatalog _
) As ActivationError()
'Usage
Dim entities As IList(Of Entity)
Dim catalog As AdministrationMetadataCatalog
Dim returnValue As ActivationError()

returnValue = Entity.SwitchActive(entities, _
    catalog)
public static ActivationError[] SwitchActive(
    IList<Entity> entities,
    AdministrationMetadataCatalog catalog
)

Parameters

Return Value

Type: []
The activation error collection.

Remarks

If the same external content type is specified more than once, the external content type with the latest version will be activated.

See Also

Reference

Entity Class

Entity Members

SwitchActive Overload

Microsoft.SharePoint.BusinessData.Administration.Client Namespace