Ver versión en español    
 
Home
10 Reasons to use MZ-Tools
MZ-Tools 6.0 for VS.NET
Editions
Features
Online Documentation
MZ-Tools SDK
Download
Purchase
Version History (RSS)  
FAQ & Support
MZ-Tools 3.0 for VB6 & VBA
Features
Online Documentation
Download (freeware)
Donations (Paypal)
Version History (RSS)  
FAQ & Support
User Reviews
Community Place
Contact  
For Add-In Developers
About
   
 
User Testimonials

I'm an avid supporter of MZ-Tools. It's a product I couldn't do without and your level of support is outstanding.

Jan Hyde (Visual Basic MVP)

You will soon wonder how you ever lived without it.

Andy Maggs

More user reviews
 
BUG: EnvDTE80.CodeEvent lacks a Parameters property for VB.NET 2005 events declared without a delegate

Author: Carlos J. Quintero (Microsoft MVP) Applies to: Microsoft Visual Studio 2005
Date: June 2007    

Introduction

VB.NET allows to declare events using a delegate (the approach used by C#) or to specify directly the event signature as follows:

Public Event MyEvent(ByVal p As Integer)

When using the file code model (ProjectItem.FileCodeModel) to retrieve the code elements, Visual Studio .NET 2003 used an EnvDTE.CodeFunction to represent that code element, which allowed to retrieve the parameters of the event signature. However, Visual Studio 2005 uses the new EnvDTE80.CodeEvent class to represent that event, and this class lacks a Parameters collection to retrieve the parameters of the event signature.

Cause

This seems to be a bug of Visual Studio 2005 that did not happen in Visual Studio .NET 2003.

Go back to the 'Resources for Visual Studio .NET extensibility' section for more articles like this

MZ-Tools 6.0 for Visual Studio .NET

You can code, design, locate code and document your apps much faster using VB.NET, C#, C++ or Visual J#:

Buy MZ-Tools Now Download MZ-Tools Demo

   Top