📄 _drecipientcontrolevents_eventprovider.cs
字号:
namespace Microsoft.Office.Interop.Outlook
{
using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Threading;
internal sealed class _DRecipientControlEvents_EventProvider : _DRecipientControlEvents_Event, IDisposable
{
private ArrayList m_aEventSinkHelpers;
private UCOMIConnectionPoint m_ConnectionPoint;
private UCOMIConnectionPointContainer m_ConnectionPointContainer;
public _DRecipientControlEvents_EventProvider(object obj1)
{
this.m_ConnectionPointContainer = (UCOMIConnectionPointContainer) obj1;
}
public override void Dispose()
{
this.Finalize();
GC.SuppressFinalize(this);
}
public override void Finalize()
{
Monitor.Enter(this);
try
{
if (this.m_ConnectionPoint != null)
{
int count = this.m_aEventSinkHelpers.Count;
int num2 = 0;
if (0 < count)
{
do
{
_DRecipientControlEvents_SinkHelper helper = (_DRecipientControlEvents_SinkHelper) this.m_aEventSinkHelpers[num2];
this.m_ConnectionPoint.Unadvise(helper.m_dwCookie);
num2++;
}
while (num2 < count);
}
Marshal.ReleaseComObject(this.m_ConnectionPoint);
}
}
catch (Exception)
{
}
finally
{
Monitor.Exit(this);
}
}
private void Init()
{
UCOMIConnectionPoint ppCP = null;
byte[] b = new byte[] { 0x17, 0x7e, 0x7e, 0xd8, 0x97, 0x68, 0xce, 0x11, 0xa6, 0xc0, 0, 170, 0, 0x60, 0x8f, 170 };
Guid riid = new Guid(b);
this.m_ConnectionPointContainer.FindConnectionPoint(ref riid, out ppCP);
this.m_ConnectionPoint = ppCP;
this.m_aEventSinkHelpers = new ArrayList();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -