MobileListItem.op_Implicit メソッド
アセンブリ: System.Web.Mobile (system.web.mobile.dll 内)

戻り値
Text が指定した String に設定されている MobileListItem。


暗黙の型変換を使用して文字列から複数の MobileListItem オブジェクトを作成し、それらを List コントロールに追加するコード例を次に示します。
<%@ Page Language="VB" Inherits="System.Web.UI.MobileControls.MobilePage" %> <%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %> <script runat="server"> Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) Dim mi As MobileListItem ' Use implicit conversion to create ' new MobileListItem objects from strings mi = "One" List1.Items.Add(mi) mi = "Two" List1.Items.Add(mi) End Sub </script> <html > <body> <mobile:form id="form1" runat="server"> <mobile:List ID="List1" Runat="server" /> </mobile:form> </body> </html>
<%@ Page Language="C#" Inherits="System.Web.UI.MobileControls.MobilePage" %> <%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { MobileListItem mi; // Use implicit conversion to create // new MobileListItem objects from strings mi = "One"; List1.Items.Add(mi); mi = "Two"; List1.Items.Add(mi); } </script> <html > <body> <mobile:form id="form1" runat="server"> <mobile:List ID="List1" Runat="server"> </mobile:List> </mobile:form> </body> </html>

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からMobileListItem.op_Implicit メソッドを検索する場合は、下記のリンクをクリックしてください。

- MobileListItem.op_Implicit メソッドのページへのリンク