.net Default method like vb6

K

Kevin Phifer

I think that I have found that this is not supported
in .net (either vb.net or c#).

I would like to have my old default method attribute when
I built "classes" in vb6.

Is this possible?
 
T

Tian Min Huang

Hi Kevin,

Thanks for your post. Based on my experience and reseach, there is no
exactly the same VB6 default procedure ID setting in .NET. You can take a
look at DefaultMemberAttribute and DefaultPropertyAttribute in the links
below, however, we are not able to call DefaultMemberAttribute as in VB6
and DefaultPropertyAttribute is for components only.

DefaultMemberAttribute Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemreflectiondefaultmemberattributeclasstopic.asp

DefaultPropertyAttribute Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemComponentModelDefaultPropertyAttributeClassTopic.asp

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

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