Note: This API is now obsolete.
Saves the current document in the TIBCO Spotfire Server Library
and overwrites an existing document. This operation can only be
used to overwrite an already existing document in the 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 virtual bool SaveToLibrary( Guid entryId, DocumentSaveSettings settings )
Parameters
- entryId
- Type: SystemGuid
The unique id of the entry to overwrite. - settings
- Type: Spotfire.Dxp.ApplicationDocumentSaveSettings
Controls some aspects of how the document is saved. For instance whether a configuration block is embedded.
Return Value
Type: Booleantrue if the document was successfully saved.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | this method is not called from the application main thread or if no document is loaded in the application. |
ArgumentNullException | settings is null. |
ArgumentException | entryId is an empty GUID or no entry with this value exists in the library. |
LibraryException | if 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