FrameworkElementAdapters.ViewToContractAdapter(FrameworkElement) 方法

定义

返回已从 a . 转换的一个 INativeHandleContractFrameworkElement

public:
 static System::AddIn::Contract::INativeHandleContract ^ ViewToContractAdapter(System::Windows::FrameworkElement ^ root);
[System.Security.SecurityCritical]
public static System.AddIn.Contract.INativeHandleContract ViewToContractAdapter(System.Windows.FrameworkElement root);
[<System.Security.SecurityCritical>]
static member ViewToContractAdapter : System.Windows.FrameworkElement -> System.AddIn.Contract.INativeHandleContract
Public Shared Function ViewToContractAdapter (root As FrameworkElement) As INativeHandleContract

参数

root
FrameworkElement

FrameworkElement 跨主机应用程序与外接程序之间的隔离边界传递。

返回

从主机应用程序或外接程序传递的一个 INativeHandleContract ,具体取决于 UI 在两者之间传递的方向。

属性

例外

root 不是元素树的根元素。

适用于

另请参阅