c# - Get the relative path of RegistryKey -


i have system.win32.registrykey object points to, example, "hkcu\software\test". .name property populated absolute path. there way current (relative) key name?

in example above, looking "test" part of path. looking registry equivelent system.io.path.getdirectoryname without having parse path manually.

you can call system.io.path.getdirectoryname.

the path.* functions (except getfullpath()) purely string manipulation functions , work fine non-filesystem paths.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -