Creates a default model for the specified meta data items in a data source.
Namespace: Spotfire.Dxp.Data.InformationModel
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax
C#
public void CreateDefaultInformationModel( LibraryItem destinationFolder, LibraryItem dataSource, IEnumerable<DataSourceItemPath> itemPaths, LibraryItemMetadataSettings settings, NameConflictStrategy nameConflictStrategy )
Parameters
- destinationFolder
- Type: Spotfire.Dxp.Framework.LibraryLibraryItem
The library folder to save the result in. - dataSource
- Type: Spotfire.Dxp.Framework.LibraryLibraryItem
The data source in which the itemPaths live. - itemPaths
- Type: System.Collections.GenericIEnumerableDataSourceItemPath
The items in the dataSource for which to create a default model. - settings
- Type: Spotfire.Dxp.Framework.LibraryLibraryItemMetadataSettings
The metadata that will be applied to each element that is created. - nameConflictStrategy
- Type: Spotfire.Dxp.Data.InformationModelNameConflictStrategy
Determines what happens if names of items that are created clashes with existing items in the library.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If any of the arguments are null. |
ArgumentNullException | If any of the paths in itemPaths are null. |
ArgumentException | If destinationFolder is not a folder. |
ArgumentException | If dataSource is not a data source. |
ArgumentException | If itemPaths contains no paths. |
ArgumentException | If name conflict resolution is not a valid member of that enum. |
CanceledException | If the user aborts the operation. |
InformationModelException | If an error occurs in the communication with the server. |
Remarks
Version Information
See Also