Click or drag to resize
Framework1ExternalPreviewException Class
This exception is thrown by the TTX filter framework 1 preview writer adapter (TtxPreviewNativeWriter) when a FF 1 filter has successfully generated an external preview, which it will manage itself (as opposed to the preview that is managed by a preview application or preview control).
Inheritance Hierarchy
SystemObject
  SystemException
    Sdl.FileTypeSupport.Framework.Core.Utilities.IntegrationApiFramework1ExternalPreviewException

Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities.IntegrationApi
Assembly: Sdl.FileTypeSupport.Framework.Core.Utilities (in Sdl.FileTypeSupport.Framework.Core.Utilities.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
[SerializableAttribute]
public class Framework1ExternalPreviewException : Exception
Constructors
  NameDescription
Public methodFramework1ExternalPreviewException
Create without message - default usage
Public methodFramework1ExternalPreviewException(String)
Create with an explicit message.
Protected methodFramework1ExternalPreviewException(SerializationInfo, StreamingContext)
Protected constructor used for de-serialization.
Public methodFramework1ExternalPreviewException(String, Exception)
Create with a message and related exception.
Top
Remarks

Explicitly handling this exception allows a preview host application to be notified that the preview has been successfully generated, but should be treated as a "fire and forget" preview. The preview files typically are not the file names that are passed to the writer, and they will be automatically deleted when the external preview application is closed by the user.

Note that throwing an exception here is rather a hack, however for the moment no a better way of handling this situation is available.

See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments