SmsTextMessage2.From Property

Definition

gets the phone number of the sender of the message.

public:
 property Platform::String ^ From { Platform::String ^ get(); };
winrt::hstring From();
public string From { get; }
var string = smsTextMessage2.from;
Public ReadOnly Property From As String

Property Value

String

Platform::String

winrt::hstring

The sender's phone number, as a string.

Windows requirements

App capabilities
cellularMessaging sms

Applies to