This method of the RegKey class retrieves information about the key.
public RegQueryInfo queryInfo();
Returns a RegQueryInfo object containing the information.