Ce sujet n'a pas encore été évalué - Évaluez ce sujet

Windows.Devices.Sms Namespace

Fournit la possibilité d'envoyer, d'accepter, de supprimer et de recevoir des messages SMS (Short Message Service) stockés, ainsi que des requêtes de propriétés relatives à un périphérique SMS mobile à haut débit et sa banque d'informations.

Remarque  Cette fonctionnalité est disponible uniquement pour les applications d'opérateurs mobiles et les applications Windows Store ayant obtenu un accès privilégié des opérateurs de réseau mobile, des fabricants d'adaptateurs mobiles à haut débit ou des équipementiers informatiques. Pour plus d'informations, consultez Haut débit mobile : applications pour périphériques Windows Store.

Membres

Windows.Devices.SmsEspace de noms comporte les types de membres suivants :

Classes

Windows.Devices.SmsEspace de noms comporte les classes suivantes.

ClasseDescription
DeleteSmsMessageOperation Enables start, track, and end an asynchronous message delete operation for a single message.
DeleteSmsMessagesOperation Enables start, track, and end asynchronous SMS message delete operations for multiple messages.
GetSmsDeviceOperation Retrieves an SmsDevice object asynchronously.
GetSmsMessageOperation Supports the retrieval of a message from the SMS message store.
GetSmsMessagesOperation Supports the retrieval of messages.
SendSmsMessageOperation Enables the sending of a message.
SmsBinaryMessage Represents an SMS message in raw PDU format. The data format differs depending on whether the message format (indicated by the value of the Format property) is GSM or CDMA.
SmsDevice Supports the operation of a mobile broadband SMS device.
SmsDeviceMessageStore Provides access to the messages stored on an SMS Device and information about the message store.
SmsMessageReceivedEventArgs Provides data for ISmsBinaryMessage event handlers.
SmsReceivedEventDetails Presents the details of SMS message events to the background work item that handles messages while your app is suspended.
SmsTextMessage Manages a decoded SMS text message, providing direct access to the plain text body of the message, as well as key header properties, such as time stamp.

 

Délégués

Windows.Devices.SmsEspace de noms comporte les délégués suivants.

DéléguéDescription
SmsDeviceStatusChangedEventHandler This handler is called when the status on the SMS device changes. Callers should implement this when they want to be notified when a significant state change occurs on the device. For example, the caller might want to know when the device is ready to send and receive messages.
SmsMessageReceivedEventHandler This event handler is called when a new binary message is received. Callers should implement this when they want to handle new binary messages from a given SMS device.

 

Énumérations

Windows.Devices.SmsEspace de noms comporte les énumérations suivantes.

ÉnumérationDescription
CellularClass This enumerated type defines the type of cellular device.
SmsDataFormat This enumerated type identifies the format of a given protocol description unit (PDU) buffer.
SmsDeviceStatus Contains values that indicate the readiness of an SMS device to engage in cellular network traffic operations.
SmsEncoding This enumerated type is used to determine the encoding algorithm to send or calculate the length of an SmsTextMessage object.
SmsMessageClass This enumerated type specifies the message class of a message. The message class typically originates on the network, not the mobile device.
SmsMessageFilter This enumerated type specifies which messages in the device message store an operation is performed on.
SmsMessageType This enumerated type defines whether the SMS message is encoded in binary or text format.

 

Interfaces

Windows.Devices.SmsEspace de noms définit ces interfaces.

InterfaceDescription
ISmsBinaryMessage This interface provides access to the raw binary format of an SMS message. The message is stored in the industry standard protocol description unit (PDU) format (see the SMS specification GSM 03.40).
ISmsDevice This interface controls a mobile broadband SMS device. It is the primary entry point to SMS services on the device.
ISmsMessage This interface is implemented by all types of SMS messages that are supported.
ISmsTextMessage This interface manipulates a decoded SMS text message. It provides direct access to the plain text body of the message, as well as key header properties, such as time stamp.

 

Structures

Windows.Devices.SmsEspace de noms comporte les structures suivantes.

StructureDescription
SmsEncodedLength This structure represents information about the length of an SmsTextMessage object when it is encoded as a PDU.

 

Configuration requise

Client minimal pris en charge

Windows 8

Serveur minimal pris en charge

Windows Server 2012

Espace de noms

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

Métadonnées

Windows.winmd

Capabilities

sms

 

 

© 2013 Microsoft. Tous droits réservés.