SmsTextMessage2 클래스

정의

디코딩된 SMS 문자 메시지를 캡슐화합니다. 이전 SmsTextMessage 클래스보다 이 클래스를 선호합니다.

참고

이 기능은 모바일 네트워크 운영자, 모바일 광대역 어댑터 IHV 또는 OEM에서 권한 있는 액세스 권한이 부여된 통신사 앱 및 UWP 앱에서만 사용할 수 있습니다. 자세한 내용은 모바일 광대역을 참조하세요.

문자 메시지를 보내려면 이 클래스의 instance 구성하고, 모든 적절한 필드를 설정하고, SmsDevice2.SendMessageAndGetResultAsync를 사용하여 보냅니다.

받은 문자 메시지에 액세스하려면 SmsMessageReceived 이벤트에 의해 트리거되는 백그라운드 작업을 만듭니다. 이 작업에서 먼저 SmsMessageReceivedTriggerDetails.MessageType을 사용하여 메시지가 문자 메시지인지 확인한 다음 SmsMessageReceivedTriggerDetails.TextMessage 속성을 사용하여 이 클래스의 instance 액세스합니다.

public ref class SmsTextMessage2 sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SmsTextMessage2 final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class SmsTextMessage2 final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SmsTextMessage2
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SmsTextMessage2
function SmsTextMessage2()
Public NotInheritable Class SmsTextMessage2
상속
Object Platform::Object IInspectable SmsTextMessage2
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)
앱 기능
cellularMessaging sms

생성자

SmsTextMessage2()

이 클래스의 새 기본 instance 생성합니다.

속성

Body

문자 메시지의 본문을 가져오거나 설정합니다.

CallbackNumber

메시지의 콜백 번호를 가져오거나 설정합니다.

CellularClass

메시지의 셀룰러 클래스를 가져옵니다.

DeviceId

SMS 문자 메시지와 연결된 디바이스의 디바이스 식별자를 가져옵니다.

Encoding

메시지에 사용되는 인코딩 체계를 가져오거나 설정합니다.

From

는 메시지 보낸 사람의 전화 번호를 가져옵니다.

IsDeliveryNotificationEnabled

이 메시지에 대해 문자 메시지 배달 알림을 사용할 수 있는지 여부를 가져오거나 설정합니다.

MessageClass

메시지의 메시지 클래스를 가져옵니다.

MessageType

메시지의 메시지 유형을 가져옵니다.

ProtocolId

메시지에 대한 프로토콜 식별자를 가져옵니다.

RetryAttemptCount

메시지에 대한 재시도 횟수를 가져오거나 설정합니다.

SimIccId

메시지를 받은 SIM의 ICCID(통합 회로 카드 식별자)를 가져옵니다.

TeleserviceId

이 메시지와 연결된 원격 서비스 식별자를 가져옵니다.

Timestamp

이 메시지의 타임스탬프입니다.

To

메시지의 받는 사람 전화 번호를 가져오거나 설정합니다.

적용 대상

추가 정보