Error: 'LabelLayer' is not accessible in this context
because it is private
Error: 'LabelLayer' is not accessible in this context because
it is private.
The actual class referred to (in this case 'LabelLayer') may vary.
The name exists in more than one namespace and the compiler thinks you
are using the version that you do not have access to.
Try fully qualifying the name. For example 'MapInfo.Mapping.LabelLayer'.
(Be sure to use the fully qualified name applicable to the object you are
These notes have been tested within Microsoft Visual Studio
.NET 2003, and may apply to other versions as well.
About the author: Brian Cryer
is a dedicated software developer and webmaster. For his day job he
develops websites and desktop applications as well as providing
IT services. He moonlights as a technical author and consultant.