Method CreateViews
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
CreateViews(IEnumerable<ExtendedViewConfiguration>)
Creates views in bulk.
ICollection<int> CreateViews(IEnumerable<ExtendedViewConfiguration> configurations)
Parameters
configurationsIEnumerable<ExtendedViewConfiguration>The configurations of the views to be created.
Returns
- ICollection<int>
The IDs of the views that were created. Views that were skipped are not included, so the collection can contain fewer IDs than the number of configurations and is not guaranteed to follow the order of
configurations.
Remarks
This method works on a best-effort basis: invalid configurations, views with a name that already exists and duplicate view names are skipped, and the remaining views are still created.
Use ViewExists(string) or GetView(string) to verify whether a view was created.
Exceptions
- ArgumentNullException
- IncorrectDataException
The data in
configurationsis invalid.