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
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.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
entities
Type: System.Collections.Generic.IList<Entity>The external content types.
catalog
Type: Microsoft.SharePoint.BusinessData.Administration.AdministrationMetadataCatalogThe Metadata Store.
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.