|
1 | | ---- |
2 | | --api-id: M:Windows.Gaming.Input.Preview.LegacyGipGameControllerProvider.ClearPairing(Windows.System.User, System.String) |
3 | | --api-type: winrt method |
4 | | ---- |
5 | | - |
6 | | -<!-- Method syntax. |
7 | | -public void LegacyGipGameControllerProvider.ClearPairing(User user, string controllerProviderId) |
8 | | ---> |
9 | | - |
10 | | -# Windows.Gaming.Input.Preview.LegacyGipGameControllerProvider.ClearPairing |
11 | | - |
12 | | -## -description |
13 | | - |
14 | | -Removes any copilot pairings for controllerId for the given user. |
15 | | - |
16 | | -## -parameters |
17 | | - |
18 | | -### -param user |
19 | | - |
20 | | -User to clear the pairing for. |
21 | | - |
22 | | -### -param controllerProviderId |
23 | | - |
24 | | -Provider id for the controller to remove from parings. |
25 | | - |
26 | | -## -remarks |
27 | | - |
28 | | -Removes the given controller from any pairings where it is either a pilot or copilot for the given user. The controller does not need to be connected to be unpaired. Removing one controller from a pairing removes the pairing entirely — that is, if a controller is paired as a copilot to another controller, removing the copilot controller will also remove the pairing for the pilot controller and vice versa. |
29 | | - |
30 | | -> [!CAUTION] |
31 | | -> Copilot pairing is system-wide and persistent for the given user. This should only be done at the user's direction. |
32 | | -
|
33 | | -## -examples |
34 | | - |
35 | | -:::code language="csharp" source="code/csharp/CopilotSample.cs"::: |
36 | | - |
37 | | -## -see-also |
| 1 | +--- |
| 2 | +-api-id: M:Windows.Gaming.Input.Preview.LegacyGipGameControllerProvider.ClearPairing(Windows.System.User,System.String) |
| 3 | +-api-type: winrt method |
| 4 | +--- |
| 5 | + |
| 6 | +# Windows.Gaming.Input.Preview.LegacyGipGameControllerProvider.ClearPairing(Windows.System.User,System.String) |
| 7 | + |
| 8 | +<!-- |
| 9 | +public static void ClearPairing (Windows.System.User user, string controllerProviderId); |
| 10 | +--> |
| 11 | + |
| 12 | +## -description |
| 13 | + |
| 14 | +Removes any copilot pairings for controllerId for the given user. |
| 15 | + |
| 16 | +## -parameters |
| 17 | + |
| 18 | +### -param user |
| 19 | + |
| 20 | +User to clear the pairing for. |
| 21 | + |
| 22 | +### -param controllerProviderId |
| 23 | + |
| 24 | +Provider id for the controller to remove from parings. |
| 25 | + |
| 26 | +## -remarks |
| 27 | + |
| 28 | +Removes the given controller from any pairings where it is either a pilot or copilot for the given user. The controller does not need to be connected to be unpaired. Removing one controller from a pairing removes the pairing entirely — that is, if a controller is paired as a copilot to another controller, removing the copilot controller will also remove the pairing for the pilot controller and vice versa. |
| 29 | + |
| 30 | +> [!CAUTION] |
| 31 | +> Copilot pairing is system-wide and persistent for the given user. This should only be done at the user's direction. |
| 32 | +
|
| 33 | +## -see-also |
| 34 | + |
| 35 | +## -examples |
| 36 | + |
| 37 | +:::code language="csharp" source="code/csharp/CopilotSample.cs"::: |
0 commit comments