COM Interop Show only some classes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alan Roberts

    COM Interop Show only some classes

    How can I expose some classes within my assembly to COM but not others?

    Thanks

    Alan


  • Mattias Sjögren

    #2
    Re: COM Interop Show only some classes

    Alan,
    [color=blue]
    >How can I expose some classes within my assembly to COM but not others?[/color]

    Use the ComVisible attribute.


    Mattias

    --
    Mattias Sjögren [C# MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • Alan Roberts

      #3
      Re: COM Interop Show only some classes

      Thanks!

      "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rg> wrote in message
      news:ecuMfQoBGH A.2704@TK2MSFTN GP15.phx.gbl...[color=blue]
      > Alan,
      >[color=green]
      >>How can I expose some classes within my assembly to COM but not others?[/color]
      >
      > Use the ComVisible attribute.
      >
      >
      > Mattias
      >
      > --
      > Mattias Sjögren [C# MVP] mattias @ mvps.org
      > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      > Please reply only to the newsgroup.[/color]


      Comment

      Working...