FrameworkElementAdapters.ViewToContractAdapter(FrameworkElement) Méthode

Définition

Retourne un INativeHandleContract élément qui a été converti à partir d’un FrameworkElement.

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

Paramètres

root
FrameworkElement

À FrameworkElement passer à travers la limite d’isolation entre l’application hôte et le complément.

Retours

Transmis INativeHandleContract à partir de l’application hôte ou du complément, selon la direction dans laquelle l’interface utilisateur est passée entre les deux.

Attributs

Exceptions

root n’est pas l’élément racine d’une arborescence d’éléments.

S’applique à

Voir aussi