Partager via


IFindAllReferencesWindow.AddCommandTarget Method

Definition

Add target to the windows list of IOleCommandTarget.

public:
 void AddCommandTarget(Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ target, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ % next);
public void AddCommandTarget (Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget target, out Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget next);
abstract member AddCommandTarget : Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget * IOleCommandTarget -> unit
Public Sub AddCommandTarget (target As IOleCommandTarget, ByRef next As IOleCommandTarget)

Parameters

target
IOleCommandTarget

Command target to add.

next
IOleCommandTarget

Next command target in the chain.

Remarks

target must forward the command is doesn't handle to next.

These command targets will automatically be removed when the FAR window is closed.

Applies to