Partager via


VCCodeClass.AddEvent(String, Object, Object, vsCMAccess) Method

Definition

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(594)]
[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(594)>]
[<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

Applies to