BulletedList.AutoPostBack プロパティ
アセンブリ: System.Web (system.web.dll 内)

Public Overrides Property AutoPostBack As Boolean
Dim instance As BulletedList Dim value As Boolean value = instance.AutoPostBack instance.AutoPostBack = value
public: virtual property bool AutoPostBack { bool get () override; void set (bool value) override; }
/** @property */ public boolean get_AutoPostBack () /** @property */ public void set_AutoPostBack (boolean value)
public override function get AutoPostBack () : boolean public override function set AutoPostBack (value : boolean)
false.


AutoPostBack プロパティは、ListControl クラスから継承され、BulletedList コントロールには適用されません。AutoPostBack プロパティには値を割り当てないでください。AutoPostBack に値を割り当てると、NotSupportedException 例外がスローされます。

次のコード例では、BulletedList コントロールの AutoPostBack プロパティの値が常に false なので、このプロパティはこのクラスには適用されません。
<%@ Page Language="VB" %> <html> <head> <script runat="server"> Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Dim value As Boolean ' Get the value of AutoPostBack for this bulleted list. value = ItemsBulletedList.AutoPostBack ' This property is not applicable to the BulletedList class. ' This message will never be displayed. If value = True Then Message.Text = "The value of the AutoPostBack property is True." End If ' The default AutoPostBack value inherited from ListControl is False. ' This message will always be displayed. If value = False Then Message.Text = "The value of the AutoPostBack property is " & value & "." _ & "This property is inherited by the ListControl class." _ & "It is not applicable to the BulletedList class." End If End Sub </script> </head> <body> <h3>AutoPostBack Property Example</h3> <form ID="Form1" runat="server"> <asp:BulletedList id="ItemsBulletedList" BulletStyle="Disc" DisplayMode="Text" runat="server"> <asp:ListItem Value="0">The first list item.</asp:ListItem> <asp:ListItem Value="1">The second list item.</asp:ListItem> <asp:ListItem Value="2">The third list item.</asp:ListItem> <asp:ListItem Value="3">The fourth list item.</asp:ListItem> </asp:BulletedList> <P> <asp:Label id="Message" Font-Size="12" Width="368px" runat="server"/><P> </form> </body> </html>
<%@ Page Language="C#" %> <html> <head> <script language="C#" runat="server"> void Page_Load(Object sender, EventArgs e) { // Get the value of AutoPostBack for this bulleted list. bool value; value = ItemsBulletedList.AutoPostBack; // This property is not applicable to the BulletedList class. // This message will never be displayed. if(value) { Message.Text = "The value of the AutoPostBack property is True."; } // The default AutoPostBack value inherited from ListControl is False. // This message will always be displayed. if(!value) { Message.Text = "The value of the AutoPostBack property is " + value.ToString() + "." + "This property is inherited by the ListControl class." + "It is not applicable to the BulletedList class."; } } </script> </head> <body> <h3>AutoPostBack Property Example</h3> <form ID="Form1" runat="server"> <asp:BulletedList id="ItemsBulletedList" BulletStyle="Disc" DisplayMode="Text" runat="server"> <asp:ListItem Value="0">The first list item.</asp:ListItem> <asp:ListItem Value="1">The second list item.</asp:ListItem> <asp:ListItem Value="2">The third list item.</asp:ListItem> <asp:ListItem Value="3">The fourth list item.</asp:ListItem> </asp:BulletedList> <P> <asp:Label id="Message" Font-Size="12" Width="368px" runat="server"/><P> </form> </body> </html>

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


BulletedList クラス
BulletedList メンバ
System.Web.UI.WebControls 名前空間
ListControl
AutoPostBack
その他の技術情報
BulletedList Web サーバー コントロール
Weblioに収録されているすべての辞書からBulletedList.AutoPostBack プロパティを検索する場合は、下記のリンクをクリックしてください。

- BulletedList.AutoPostBack プロパティのページへのリンク