SmsDevice2.FromId(String) Method
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.
Creates an instance of SmsDevice2 for a device that received an SMS message.
public:
static SmsDevice2 ^ FromId(Platform::String ^ deviceId);
static SmsDevice2 FromId(winrt::hstring const& deviceId);
public static SmsDevice2 FromId(string deviceId);
function fromId(deviceId)
Public Shared Function FromId (deviceId As String) As SmsDevice2
Parameters
- deviceId
-
String
Platform::String
winrt::hstring
A string representation of the device ID of the device that received an SMS message.
Returns
An instance of SmsDevice2 initialized for the device with the given ID.
Windows requirements
App capabilities |
cellularMessaging
sms
|