FileOperationFailedEvent Interface
Terminal notification for a started operation that rejects. Success events are never emitted after this notification.
Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.
Members
Properties
| Property | Description |
|---|---|
| byteLength | Input or output byte count, when known. |
| canceled | The canceled value of FileOperationFailedEvent. |
| code | The code value of FileOperationFailedEvent. |
| message | The message value of FileOperationFailedEvent. |
| operation | The operation value of FileOperationFailedEvent. |
| operationId | The operationId value of FileOperationFailedEvent. |
| streamType | The streamType value of FileOperationFailedEvent. |
Examples
Pass the FileOperationFailedEvent value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.
function inspectFileOperationFailedEventMessage(fileOperationFailedEvent: { message: string }) {
const value = fileOperationFailedEvent['message'];
console.log('FileOperationFailedEvent.message', value);
}