Selects the elements. 
   Namespace:   Autodesk.Revit.UI.Selection  
  Assembly:   RevitAPIUI  (in RevitAPIUI.dll) Version: 22.0.0.0 (22.1.0.0) 
  Since:  2015 
Syntax
| C# | 
|---|
|  | 
| Visual Basic | 
|---|
|  | 
| Visual C++ | 
|---|
|  | 
Parameters
- elementIds
-  Type:  System.Collections.Generic ICollection   ElementId  
 The ids of the elements to be selected.
Remarks
 This function will select the specified elements and update the UI. 
 Exceptions
| Exception | Condition | 
|---|---|
| Autodesk.Revit.Exceptions ArgumentNullException | A non-optional argument was null |