Customise Generated File "Reference.cs"


G

Guest

We have the following setup. A VB6 application calls a .NET COM component
that acts mainly as a forwarding system calling methods on a web service.

When you open up the VB6 object browser and look at the methods exposed by
the .NET COM Component, you will also see the public methods exposed by the
WebService. I do not want the VB6 application to know about the WebService.

If I were to define the WebService public methods as ComVisible(false), then
they would not be exposed to the .NET COM Component. I can however, add this
attribute to the Web References\Reference.cs file present in the .NET COM
Project.

Is there a way to have the calling of "Update Web Reference" and "Add Web
Reference" to automatically add the ComVisible(false) attribute to each class
in the Reference.cs file generated?
 
Ad

Advertisements

P

Patrick Steele [MVP]

We have the following setup. A VB6 application calls a .NET COM component
that acts mainly as a forwarding system calling methods on a web service.

When you open up the VB6 object browser and look at the methods exposed by
the .NET COM Component, you will also see the public methods exposed by the
WebService. I do not want the VB6 application to know about the WebService.

Is the webservice itself the .NET COM component? Or do you have a .NET
component that calls a .NET webservice and that .NET component is the
one exposed to COM?
 
G

Guest

Hi ya,

We have a .NET component that calls a .NET webservice and that .NET
component is the one exposed to COM?
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top