TransferTargetDiscoveryOptions.AllowedTargetAppIds 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 AllowedTargetAppIds property gets or sets a list of app IDs that are allowed as transfer targets. This property is used to filter the discovery process to include only specific apps.
public:
property Platform::Array <Platform::String ^> ^ AllowedTargetAppIds { Platform::Array <Platform::String ^> ^ get(); void set(Platform::Array <Platform::String ^> ^ value); };
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Windows.Foundation.Metadata.Experimental]
/// [set: Windows.Foundation.Metadata.Experimental]
winrt::array_view <winrt::hstring const&> AllowedTargetAppIds();
void AllowedTargetAppIds(winrt::array_view <winrt::hstring const&> value);
[Windows.Foundation.Metadata.Experimental]
public string[] AllowedTargetAppIds { [Windows.Foundation.Metadata.Experimental] get; [Windows.Foundation.Metadata.Experimental] set; }
var string[] = transferTargetDiscoveryOptions.allowedTargetAppIds;
transferTargetDiscoveryOptions.allowedTargetAppIds = string[];
Public Property AllowedTargetAppIds As String()
Property Value
A string[] array containing the app IDs of allowed transfer targets.
- Attributes
Examples
Example: Setting Allowed Target App IDs
var options = new TransferTargetDiscoveryOptions
{
AllowedTargetAppIds = new[] { "App1", "App2" }
};
Remarks
The AllowedTargetAppIds property provides a way to restrict the discovery of transfer targets to a predefined set of applications. This is useful for scenarios where only specific apps should be considered as targets.
Usage Notes:
- If this property is not set, all available transfer targets are considered.
- Use this property to enforce application-specific sharing policies.