# OnExtensionEventWithContext (/zh-CN/api-reference/rtc/csharp-windows/callback-irtcengineeventhandler-onextensioneventwithcontext)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```csharp
public virtual void OnExtensionEventWithContext(ExtensionContext context, string key, string value){}
```
### 详情 [#详情]
为监听插件事件,你需要注册该回调。
## 参数 [#参数]
插件上下文信息,详见 [ExtensionContext](/zh-CN/api-reference/rtc/csharp-windows/class-extensioncontext)。
插件属性的 Key。
插件属性 Key 对应的值。
### 所属接口类 [#所属接口类]
- [IRtcEngineEventHandler](/zh-CN/api-reference/rtc/csharp-windows/rtc-interface-class#class_irtcengineeventhandler)