title: Can I make a function COM Only? (Opposite of <Runtime.InteropServices.ComVisible(False)> )
body: <p>I have some functions in my VB.NET DLL which I can 'hide' from my VB6 app by using the following:</p>
  
  <pre><code>&lt;Runtime.InteropServices.ComVisible(False)&gt; _
  </code></pre>
  
  <p>But is there a way to make a function ONLY visible to COM clients and not to .NET assemblies?</p>
  
  <p>This way I can use Shared methods for the .NET side avoiding the need for an instance declaration. </p>