Udostępnij za pośrednictwem


SmsDevice2.FromId(String) Method

Definition

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

Applies to