SmsMessage

  • Thread starter Thread starter der
  • Start date Start date
D

der

Hi,

I'm wanting to store SMS messages to a local database. I'm using the
SmsMessage class to receive the SMS. I understand that the maximum size the
SMS Body can have is 160 characters for a single SMS, but I'm not sure what
the maximum size is for the other properties of an SMS like - To, From,
Received etc..

Does anybody know where the standard sizes for the properties of an SMS are
specified?

Thanks a lot,
Dav
 
The To collection is a collection of one or many recipient items these can
include both a display name and address (phone number in the case of SMS)
but often for SMS are just the number. Also each individual SMS is sent only
to a single recipient so the receiver wont see multiple To addressees as you
might in an email. The length will depend on the format - whether it has an
international code etc you could define something like 20 characters which
should be more than enough for the most unusual phone number. From again is
a recipient type but you need only store a phone number and you can always
lookup the contact from PocketOutlook if required. Received is a DateTime
type so you would store it in a suitable format in a database so the string
length is not really applicable.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility
 
Back
Top