VCCodeStruct.AddEvent(String, Object, Object, vsCMAccess) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Microsoft Internal Use Only.
Microsoft::VisualStudio::VCCodeModel::VCCodeEvent AddEvent(std::wstring const & Name, winrt::Windows::Foundation::IInspectable const & Type, winrt::Windows::Foundation::IInspectable const & Position, EnvDTE::vsCMAccess Access = EnvDTE.vsCMAccess.vsCMAccessDefault);
[System.Runtime.InteropServices.DispId(593)]
[System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FHidden)]
public Microsoft.VisualStudio.VCCodeModel.VCCodeEvent AddEvent (string Name, object Type, object Position, EnvDTE.vsCMAccess Access = EnvDTE.vsCMAccess.vsCMAccessDefault);
[<System.Runtime.InteropServices.DispId(593)>]
[<System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FHidden)>]
abstract member AddEvent : string * obj * obj * EnvDTE.vsCMAccess -> Microsoft.VisualStudio.VCCodeModel.VCCodeEvent
Public Function AddEvent (Name As String, Optional Type As Object, Optional Position As Object, Optional Access As vsCMAccess = EnvDTE.vsCMAccess.vsCMAccessDefault) As VCCodeEvent
Parameters
- Name
- String
Event name
- Type
- Object
Event type
- Position
- Object
Optional. Default = 0. The code element after which to add the new element.
- Access
- vsCMAccess
Optional. A vsCMAccess constant.
Returns
An object representing an event code element.
- Attributes