Share via


TransferTargetDiscoveryOptions.MaxAppTargets Property

Definition

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

Int32

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.

Applies to

See also