InputActivationListener.GetForWindowId(WindowId) 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.
Retrieves a InputActivationListener object for the specified top-level window.
public:
static InputActivationListener ^ GetForWindowId(WindowId windowId);
static InputActivationListener GetForWindowId(WindowId const& windowId);
public static InputActivationListener GetForWindowId(WindowId windowId);
function getForWindowId(windowId)
Public Shared Function GetForWindowId (windowId As WindowId) As InputActivationListener
Parameters
- windowId
- WindowId
The window identifier.
Returns
A InputActivationListener object for the specified top-level window, or a new InputActivationListener if one doesn't exist.
If windowId is invalid, is owned by a different thread than the calling thread, or is a child window, GetForWindowId returns null.
Remarks
GetForWindowId only supports top-level windows on the same thread as the caller.
Calling GetForWindowId multiple times will return the same object each time.
In all cases there can only be a single InputActivationListener associated with a particular Window ID.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for