dotnet / dotnet/dotnet-api-docs

Need to clarify RegistryKey.FromHandle will always set the KeyName to empty string

Open
#4,221 0 comments 0 reactions 0 assignees View on GitHub
area-Microsoft.Win32 Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

_From @tarekgh on Tuesday, May 12, 2020 4:32:55 PM_

**Issue description**

When creating RegisteryKey from a handle using [RegistryKey.FromHandle](https://docs.microsoft.com/en-us/dotnet/api/microsoft.win32.registrykey.fromhandle?view=dotnet-plat-ext-3.1), the key name is always set to empty string. The documentation need to explicitly mention that.

This issue reported on the [community portal](https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1109953?src=WorkItemMention&src-action=artifact_link).

**Target framework**

Check the .NET target framework(s) being used, and include the version number(s).

- [ x] .NET Core
- [ x] .NET Framework
- [ x] .NET Standard

_Copied from original issue: dotnet/docs#18370_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.