TransferTarget.Label 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 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
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
Labelis intended for display purposes and might not be unique. - Combine the
Labelwith other properties, such asId, for unique identification if needed.