Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15811

ComClass and NotInheritable

$
0
0
Is there a way to reference a .NET class in COM without having to instantiate it?

Here is my .NET interop class signature:

VB.NET Code:
  1. <ComClass(InputMask.ClassId, InputMask.InterfaceId, InputMask.EventsId)>
  2. Public NotInheritable Class InputMask

From COM, I can access the properties and methods at design time, but at run-time it balks because the class is not instantiated. Not the end of the world, but I would like to access read-only properties and call functions from my interop class without having to instantiate the class in COM if possible. Perhaps the simple answer is, this is not possible.

Viewing all articles
Browse latest Browse all 15811

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>