Share via


TransferTarget.Label Property

Definition

The Label property gets the display name of the transfer target. You typically show this name to users so they can identify the target.

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

Property Value

String

Platform::String

winrt::hstring

A string that represents the display name of the transfer target.

Attributes

Examples

Example: Displaying the label of a transfer target

var targetLabel = transferTarget.Label;
Console.WriteLine($"Transfer Target Label: {targetLabel}");

Remarks

The Label property provides a user-friendly name for the transfer target. It's localized based on the current user's locale selection.

Applications can use this property to display the name in their user interface, making it easier for users to select the desired target.

Usage Notes:

  • The Label is intended for display purposes and might not be unique.
  • Combine the Label with other properties, such as Id, for unique identification if needed.

Applies to

See also