SmsDevice2.FromParentId(String) Method

Definition

Creates an instance of SmsDevice2 for a device, given the device ID of the parent device.

public:
 static SmsDevice2 ^ FromParentId(Platform::String ^ parentDeviceId);
 static SmsDevice2 FromParentId(winrt::hstring const& parentDeviceId);
public static SmsDevice2 FromParentId(string parentDeviceId);
function fromParentId(parentDeviceId)
Public Shared Function FromParentId (parentDeviceId As String) As SmsDevice2

Parameters

parentDeviceId
String

Platform::String

winrt::hstring

The device ID of the parent device.

Returns

An instance of SmsDevice2 initialized for the device with the given parent ID.

Windows requirements

App capabilities
cellularMessaging sms

Applies to