File: CodeModel\Interop\IEventHandler.cs
Web Access
Project: src\src\VisualStudio\Core\Impl\Microsoft.VisualStudio.LanguageServices.Implementation.csproj (Microsoft.VisualStudio.LanguageServices.Implementation)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
#nullable disable
 
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.TextManager.Interop;
 
namespace Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.Interop;
 
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("9BDA66AE-CA28-4e22-AA27-8A7218A0E3FA")]
internal interface IEventHandler
{
    [PreserveSig]
    int AddHandler([MarshalAs(UnmanagedType.BStr)] string bstrEventName);
 
    [PreserveSig]
    int RemoveHandler([MarshalAs(UnmanagedType.BStr)] string bstrEventName);
 
    [PreserveSig]
    int GetHandledEvents([MarshalAs(UnmanagedType.Interface)] out IVsEnumBSTR ppUnk);
 
    [PreserveSig]
    int HandlesEvent([MarshalAs(UnmanagedType.BStr)] string bstrEventName, [MarshalAs(UnmanagedType.Bool)] out bool result);
}