MobileListItem::Implicit Operator
Provides implicit conversion from a String to a MobileListItem.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
Parameters
- s
- Type: System::String
The string to convert.
Return Value
Type: System.Web.UI.MobileControls::MobileListItemA MobileListItem with Text set to the specified String.
The MobileListItem object created by implicit conversion uses the string input as the value of its Text property.
The following code example creates multiple MobileListItem objects using implicit conversion from strings, and adds them to a List control.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.