Open
Description
The remark says: "This type implements the IDisposable interface. When you have finished using the type, you should dispose of it either directly or indirectly. To dispose of the type directly, call its Dispose method in a try/catch block. To dispose of it indirectly, use a language construct such as using (in C#) or Using (in Visual Basic)."
I cannot find this anywhere in the example.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: fe4d2c18-2b48-257e-b274-14fee9ddadfd
- Version Independent ID: 8087ab00-b4ab-3202-97fb-7f851b525d69
- Content: SafeFileHandle Class (Microsoft.Win32.SafeHandles)
- Content Source: xml/Microsoft.Win32.SafeHandles/SafeFileHandle.xml
- Product: dotnet-api
- GitHub Login: @mairaw
- Microsoft Alias: mairaw