AnalysisApplicationSaveToLibrary Method (Guid, DocumentSaveSettings)

Spotfire 14.2 API Reference

Note: This API is now obsolete.

Saves the current document in the 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: 64.0.19329.3263 (64.0.19329.3263)
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: Boolean
true if the document was successfully saved.
Exceptions

ExceptionCondition
InvalidOperationException this method is not called from the application main thread or if no document is loaded in the application.
ArgumentNullExceptionsettings is null.
ArgumentExceptionentryId 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 operation is not executed with progress, that is, no progress dialog is shown while the current document is being uploaded and saved in the library.

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 14.2
Obsolete (compiler warning) in 14.1
Obsolete (compiler warning) in 14.0
Obsolete (compiler warning) in 12.5
Obsolete (compiler warning) in 12.4
Obsolete (compiler warning) in 12.3
Obsolete (compiler warning) in 12.2
Obsolete (compiler warning) in 12.1
Obsolete (compiler warning) in 12.0
Obsolete (compiler warning) in 11.8
Obsolete (compiler warning) in 11.7
Obsolete (compiler warning) in 11.6
Obsolete (compiler warning) in 11.5
Obsolete (compiler warning) in 11.4
See Also

Reference