Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
3/29/2010
Sends the SMS message.
Namespace:Microsoft.WindowsMobile.PocketOutlook
Assembly:Microsoft.WindowsMobile.PocketOutlook (in microsoft.windowsmobile.pocketoutlook.dll)
Assembly:Microsoft.WindowsMobile.PocketOutlook (in microsoft.windowsmobile.pocketoutlook.dll)
Syntax
Example
This sample shows how to send an SMS message to a mobile phone.
Copy Code | |
---|---|
public void SmsMessageSend() { SmsMessage smsMessage = new SmsMessage(); //Set the message body and recipient. smsMessage.Body = "Would you like to meet for lunch?"; smsMessage.To.Add(new Recipient("John Doe", "2065550199")); smsMessage.RequestDeliveryReport = true; //Send the SMS message. smsMessage.Send(); return; } |
Thread Safety
Any public static (
Sharedin Visual Basic) members of this type are thread-safe.
Any instance members are not guaranteed to be thread-safe.