다음을 통해 공유


SmsTextMessage.FromBinaryData(SmsDataFormat, Byte[]) 메서드

정의

이진 메시지를 디코딩하고 결과를 문자 메시지의 새 instance 배치합니다. 이 메서드는 바이트 버퍼에 대한 참조로 이진 메시지를 나타내고 버퍼가 인코딩되는 방법을 선택합니다. 따라서 메시지가 디바이스에서 직접 시작되지 않았거나 SmsBinaryMessage 클래스의 instance 사용할 수 있습니다.

public:
 static SmsTextMessage ^ FromBinaryData(SmsDataFormat format, Platform::Array <byte> ^ value);
/// [Windows.Foundation.Metadata.Deprecated("ISmsTextMessageStatics may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
 static SmsTextMessage FromBinaryData(SmsDataFormat const& format, winrt::array_view <byte> const& value);
/// [Windows.Foundation.Metadata.Deprecated("ISmsTextMessageStatics may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
 static SmsTextMessage FromBinaryData(SmsDataFormat const& format, winrt::array_view <byte> const& value);
[Windows.Foundation.Metadata.Deprecated("ISmsTextMessageStatics may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
public static SmsTextMessage FromBinaryData(SmsDataFormat format, byte[] value);
[Windows.Foundation.Metadata.Deprecated("ISmsTextMessageStatics may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public static SmsTextMessage FromBinaryData(SmsDataFormat format, byte[] value);
function fromBinaryData(format, value)
Public Shared Function FromBinaryData (format As SmsDataFormat, value As Byte()) As SmsTextMessage

매개 변수

format
SmsDataFormat

특정 PDU(프로토콜 설명 단위) 버퍼의 형식을 식별하는 SmsDataFormat 열거형 값입니다.

value

Byte[]

byte[]

디코딩할 이진 데이터를 포함하는 바이트 배열입니다.

반환

디코딩에 성공한 경우 새 SmsTextMessage 개체입니다.

특성

Windows 요구 사항

앱 기능
cellularMessaging sms

적용 대상