ISmsTextMessage Interface

這個介面會管理已解碼的 SMS 文字訊息。它可讓您直接存取純文字訊息內文,以及主要的標頭屬性(例如時間戳記)。

注意事項  這項功能僅供行動電信業者的應用程式,以及行動電信業者、行動寬頻介面卡 IHV 或 OEM 授與特殊存取權限的 Windows 市集應用程式使用。如需詳細資訊,請參閱行動寬頻:Windows 市集裝置應用程式

語法


public interface ISmsTextMessage : ISmsMessage

屬性

[Version(0x06020000)]

成員

ISmsTextMessage介面 具有下列類型的成員:

方法

The ISmsTextMessage 介面 擁有這些方法。 它也會繼承方法自 Object 類別.

方法描述
ToBinaryMessages Reads a message in the specified format and places the results in a new instance of a binary message.

 

屬性

ISmsTextMessage介面 擁有這些屬性。

屬性存取類型描述

Body

讀取/寫入Specifies the plain text body of the message.

Encoding

讀取/寫入Specifies the encoding type that has been set to use when sending this message.

From

讀取/寫入Specifies the phone number of the sender of the message.

PartCount

唯讀Retrieves the total number of parts in the original message if the message is part of a multi-part message.

PartNumber

唯讀Retrieves the part number of a multi-part message if this message is part of a multi-part message. It can be used to reconstruct the original message by joining the parts together, in conjunction with the PartReferenceId and PartCount properties.

PartReferenceId

唯讀Indicates a reference value that can be used if the message is part of a multi-part message. If this message belongs to a multi-part message, the PartNumber value can be used to reconstruct the full original message, and each part of that message will have the same value for PartReferenceId.

Timestamp

唯讀Retrieves the timestamp of the message. It is determined locally for a constructed message instance or from the service center timestamp of a received message.

To

讀取/寫入Specifies the recipient phone number of this message.

 

備註

介面繼承

ISmsTextMessage 會繼承 ISmsMessage。 實作 ISmsTextMessage 的類型也會實作 ISmsMessage 的介面成員。

需求

支援的最小用戶端

Windows 8

支援的最小伺服器

Windows Server 2012

命名空間

Windows.Devices.Sms
Windows::Devices::Sms [C++]

Metadata

Windows.winmd

Capabilities

sms

請參閱

ISmsMessage

 

 

顯示:
© 2014 Microsoft