TransferTargetDiscoveryOptions.MaxAppTargets Property
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.
The MaxAppTargets property gets or sets the maximum number of app targets to discover. This property limits the number of transfer targets returned during the discovery process.
public:
property int MaxAppTargets { int get(); void set(int value); };
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Windows.Foundation.Metadata.Experimental]
/// [set: Windows.Foundation.Metadata.Experimental]
int MaxAppTargets();
void MaxAppTargets(int value);
[Windows.Foundation.Metadata.Experimental]
public int MaxAppTargets { [Windows.Foundation.Metadata.Experimental] get; [Windows.Foundation.Metadata.Experimental] set; }
var int32 = transferTargetDiscoveryOptions.maxAppTargets;
transferTargetDiscoveryOptions.maxAppTargets = int32;
Public Property MaxAppTargets As Integer
Property Value
int
An int value that specifies the maximum number of app targets to discover.
- Attributes
Examples
Example: Setting the Maximum Number of App Targets
var options = new TransferTargetDiscoveryOptions
{
MaxAppTargets = 5
};
Remarks
The MaxAppTargets property provides a way to control the number of transfer targets discovered. This is useful for optimizing performance and ensuring that only a manageable number of targets are returned.
Usage Notes:
- If this property is not set, no transfer targets will be discovered.
- Use this property to limit the discovery process to a specific number of targets.