Skip to content

Commit 7e2b32d

Browse files
committed
Apply suggestions from code review
1 parent 1aac33a commit 7e2b32d

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

windows.applicationmodel.datatransfer/transfertargetdiscoveryoptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The `TransferTargetDiscoveryOptions` class is passed to the `TransferTargetWatch
3737
#### Example: Configuring TransferTargetWatcher with Discovery Options
3838

3939
```csharp
40-
var options = new TransferTargetDiscoveryOptions
40+
var options = new TransferTargetDiscoveryOptions(dataPackageView)
4141
{
4242
AllowedTargetAppIds = new List<string> { "App1", "App2" },
4343
MaxAppTargets = 5

windows.applicationmodel.datatransfer/transfertargetdiscoveryoptions_maxapptargets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `MaxAppTargets` property provides a way to control the number of transfer ta
2424

2525
#### Usage Notes:
2626

27-
- If this property is not set, all available transfer targets are discovered.
27+
- If this property is not set, no transfer targets will be discovered.
2828
- Use this property to limit the discovery process to a specific number of targets.
2929

3030
## -see-also

windows.applicationmodel.datatransfer/transfertargetwatcher.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ public class TransferTargetWatcherInitializer
5959
m_transferTargets = new List<TransferTarget>();
6060

6161
// Create a filter to customize the transfer targets discovery
62-
var transferTargetDiscoveryOptions = new TransferTargetDiscoveryOptions
62+
var transferTargetDiscoveryOptions = new TransferTargetDiscoveryOptions(dataPackageView)
6363
{
64-
DataPackage = dataPackage.GetView(),
6564
MaxAppTargets = 5
6665
};
6766

0 commit comments

Comments
 (0)