Note: This API is now obsolete.
Saves the current document in the TIBCO Spotfire Server Library.
Namespace: Spotfire.Dxp.Application
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax
C#
[ObsoleteAttribute("Use Save() or SaveAs(LibraryItem, ...) instead.")] public bool SaveToLibrary( string path, string name, string description, string keywords )
Parameters
- path
- Type: SystemString
The parent path in which the file shall be created. The parent type must be a Section or a Folder. - name
- Type: SystemString
The name of the document to store in the library. Must be a name that is unique for an Analysis file with the given path. - description
- Type: SystemString
A brief description of the analysis. - keywords
- Type: SystemString
Searchable keywords for the analysis.
Return Value
Type: Booleantrue if the document was successfully saved.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | This method is not called from the application main thread. |
ArgumentNullException | Any of the parameters are null. |
ArgumentException | name is an empty string. |
LibraryException |
there already exist an Analysis document with the same name at the
same path in the Library. -or- the path is not a valid folder or section. -or- the name is greater than 50 characters or contains invalid characters. -or- there exists a library entry with the given name. -or- a communication error occurs when saving the document in the Library. |
NotSupportedException | This method is called in the Spotfire Web Player. |
Remarks
This method is not supported in the Spotfire Web Player. Calling it there will cause a NotSupportedException to be thrown.
Version Information
Obsolete (compiler warning) in 7.5
Obsolete (compiler warning) in 7.0
Obsolete (compiler warning) in 6.5
Obsolete (compiler warning) in 6.0
Obsolete (compiler warning) in 5.5
Obsolete (compiler warning) in 5.0
See Also