ContextItemManager.GetTarget(Delegate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a helper method that returns the target object for a delegate. If the delegate was created to proxy a generic delegate, this method returns the original object, not the proxy.
protected:
static System::Object ^ GetTarget(Delegate ^ callback);
protected static object GetTarget (Delegate callback);
static member GetTarget : Delegate -> obj
Protected Shared Function GetTarget (callback As Delegate) As Object
Parameters
- callback
- Delegate
The callback for the desired target.
Returns
Returns Object, which contains the target object of the callback.
Exceptions
callback
is null
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.