Partilhar via


EmbeddedObjectHelper.SetOleCommandTarget(UIElement, IOleCommandTarget) Method

Definition

Sets IOleCommandTarget value for the provided embedded UIElement.

public:
 static void SetOleCommandTarget(System::Windows::UIElement ^ element, Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ value);
public static void SetOleCommandTarget (System.Windows.UIElement element, Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget value);
static member SetOleCommandTarget : System.Windows.UIElement * Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget -> unit
Public Shared Sub SetOleCommandTarget (element As UIElement, value As IOleCommandTarget)

Parameters

element
UIElement

An instance of UIElement to be used in embedded environments.

value
IOleCommandTarget

The IOleCommandTarget to be set.

Applies to