TransferTarget.Id 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 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
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
Idis guaranteed to be unique for each transfer target in a given session. - Applications can use this property to store or compare transfer targets.