<div class="meta" robots="noindex">

</div>

Property

# TextOutputStream.Handle

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `TextOutputStream.Handle<textoutputstream.handle_method>` *method* as a replacement.

</div>

## Description

Handle returns a <span class="title-ref">Handle</span> of the *Type* passed or -1 if the requested *Type* cannot be retrieved.

## Notes

The class constants given below can be passed as the parameter.

| Value | Class Constant               | Description              |
|-------|------------------------------|--------------------------|
| 1     | HandleTypeWin32Handle        | A Windows32 OS handle.   |
| 2     | HandleTypeFilePointer        | A file pointer.          |
| 3     | HandleTypeFileNumber         | A file descriptor        |
| 4     | HandleTypeMacFileRefNum      | A file reference number. |
| 5     | HandleTypeMacFileSpecPointer | An FSSpec.               |

## Compatibility

All project types on all supported operating systems.
