Skip to content

Commit dd821a1

Browse files
committed
Updated events reserved for future use
1 parent afd1cf4 commit dd821a1

2 files changed

Lines changed: 6 additions & 24 deletions

File tree

windows.applicationmodel.datatransfer/transfertargetwatcher_removed.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
public event Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.DataTransfer.TransferTargetWatcher,Windows.ApplicationModel.DataTransfer.TransferTargetChangedEventArgs> Removed;
1010
-->
1111

12-
1312
## -description
1413

1514
The `Removed` event occurs when a transfer target is no longer available. This event is raised by the `TransferTargetWatcher` to notify applications about the removal of a previously discovered target.
1615

1716
## -remarks
1817

19-
Applications can handle the `Removed` event to update their state or user interface when a transfer target is no longer available. This ensures that the application reflects the current set of available targets.
18+
> [!IMPORTANT]
19+
> Reserved for future use. Currently, `TransferTargetWatcher` doesn't currently raise this event.
2020
21-
#### Event Arguments:
21+
#### Event Arguments
2222

2323
- `TransferTargetChangedEventArgs`: Contains information about the removed transfer target.
2424

@@ -27,12 +27,3 @@ Applications can handle the `Removed` event to update their state or user interf
2727
[TransferTargetWatcher](transfertargetwatcher.md), [TransferTargetChangedEventArgs](transfertargetchangedeventargs.md)
2828

2929
## -examples
30-
31-
#### Example: Handling the Removed Event
32-
33-
```csharp
34-
watcher.Removed += (sender, args) =>
35-
{
36-
Console.WriteLine($"Target removed: {args.Target.Label}");
37-
};
38-
```

windows.applicationmodel.datatransfer/transfertargetwatcher_updated.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
public event Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.DataTransfer.TransferTargetWatcher,Windows.ApplicationModel.DataTransfer.TransferTargetChangedEventArgs> Updated;
1010
-->
1111

12-
1312
## -description
1413

1514
The `Updated` event occurs when the properties of a transfer target are updated. This event is raised by the `TransferTargetWatcher` to notify applications about changes to an existing transfer target.
1615

1716
## -remarks
1817

19-
Applications can handle the `Updated` event to refresh their state or user interface when a transfer target's properties are modified. This ensures that the application displays the most current information about the target.
18+
> [!IMPORTANT]
19+
> Reserved for future use. Currently, `TransferTargetWatcher` doesn't currently raise this event.
2020
21-
#### Event Arguments:
21+
#### Event Arguments
2222

2323
- `TransferTargetChangedEventArgs`: Contains information about the updated transfer target.
2424

@@ -27,12 +27,3 @@ Applications can handle the `Updated` event to refresh their state or user inter
2727
[TransferTargetWatcher](transfertargetwatcher.md), [TransferTargetChangedEventArgs](transfertargetchangedeventargs.md)
2828

2929
## -examples
30-
31-
#### Example: Handling the Updated Event
32-
33-
```csharp
34-
watcher.Updated += (sender, args) =>
35-
{
36-
Console.WriteLine($"Target updated: {args.Target.Label}");
37-
};
38-
```

0 commit comments

Comments
 (0)