此 API 支持Windows Presentation Foundation(WPF)基础结构,不应直接在代码中使用。
由 Windows Presentation Foundation (WPF) 基础结构用于线程和窗口管理。
语法
HRESULT CreateIDispatchSTAForwarder(
__in IDispatch *pDispatchDelegate,
__deref_out IDispatch **ppForwarder
)
参数
属性值/返回值
pDispatchDelegate
指向 IDispatch
接口的指针。
ppForwarder
指向 IDispatch
接口地址的指针。
要求
平台: 请参阅 .NET Framework 系统要求。
DLL:
在 .NET Framework 3.0 和 3.5 中:PresentationHostDLL.dll
在 .NET Framework 4 及更高版本中:PresentationHost_v0400.dll
.NET Framework 版本:自 3.0 版起可用