Share via


TransferTarget.Id Property

Definition

The Id property gets the unique identifier of the transfer target. This identifier can be used to distinguish the target from others.

public:
 property Platform::String ^ Id { Platform::String ^ get(); };
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Windows.Foundation.Metadata.Experimental]
winrt::hstring Id();
[Windows.Foundation.Metadata.Experimental]
public string Id { [Windows.Foundation.Metadata.Experimental] get; }
var string = transferTarget.id;
Public ReadOnly Property Id As String

Property Value

String

Platform::String

winrt::hstring

A string that represents the unique identifier of the transfer target.

Attributes

Examples

Example: Retrieving the ID of a Transfer Target

var targetId = transferTarget.Id;
System.Diagnostics.Debug.WriteLine($"Transfer Target ID: {targetId}");

Remarks

The Id property provides a way to uniquely identify a transfer target. This is particularly useful in scenarios where multiple targets are available, and the application needs to track or reference a specific target.

Usage Notes:

  • The Id is guaranteed to be unique for each transfer target in a given session.
  • Applications can use this property to store or compare transfer targets.

Applies to

See also