Share via


SmsDevice2.GetDefault Method

Definition

Creates an instance of SmsDevice2 associated with the default SMS device.

public:
 static SmsDevice2 ^ GetDefault();
 static SmsDevice2 GetDefault();
public static SmsDevice2 GetDefault();
function getDefault()
Public Shared Function GetDefault () As SmsDevice2

Returns

An instance of SmsDevice2 initialized for the default SMS device.

Windows requirements

App capabilities
cellularMessaging sms

Applies to