CodeInterface2::AddEvent Method (String^, String^, Boolean, Object^, vsCMAccess)
Visual Studio 2015
Adds an interface event.
Assembly: EnvDTE80 (in EnvDTE80.dll)
CodeEvent^ AddEvent( String^ Name, String^ FullDelegateName, bool CreatePropertyStyleEvent = false, Object^ Position, vsCMAccess Access = vsCMAccess::vsCMAccessDefault )
Parameters
- Name
-
Type:
System::String^
Required. Name of the interface event to add.
- FullDelegateName
-
Type:
System::String^
Required. Name of the delegate to base the event on.
- CreatePropertyStyleEvent
-
Type:
System::Boolean
Optional. Creates an event that has a property style accessor.
- Position
-
Type:
System::Object^
Optional. Location of the event in code.
- Access
-
Type:
EnvDTE::vsCMAccess
Optional. A vsCMAccess constant.
Note |
|---|
The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same. |
Show:
