Dela via


CoreInputView.GetForUIContext(UIContext) Method

Definition

Gets a CoreInputView object associated with the view having the specified context identifier.

public:
 static CoreInputView ^ GetForUIContext(UIContext ^ context);
 static CoreInputView GetForUIContext(UIContext const& context);
public static CoreInputView GetForUIContext(UIContext context);
function getForUIContext(context)
Public Shared Function GetForUIContext (context As UIContext) As CoreInputView

Parameters

context
UIContext

The context identifier of the view for which to get the CoreInputView.

Returns

A CoreInputView for the specified context identifier.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

This method fails if it is called in a windowless thread.

Applies to