WizardStepCollection.Remove メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WizardStepCollection.Remove メソッドの意味・解説 

WizardStepCollection.Remove メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

指定した WizardStepBase派生オブジェクトコレクションから削除します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Sub Remove ( _
    wizardStep As WizardStepBase _
)
Dim instance As WizardStepCollection
Dim wizardStep As WizardStepBase

instance.Remove(wizardStep)
public void Remove (
    WizardStepBase wizardStep
)
public:
void Remove (
    WizardStepBase^ wizardStep
)
public void Remove (
    WizardStepBase wizardStep
)
public function Remove (
    wizardStep : WizardStepBase
)

パラメータ

wizardStep

コレクションから削除する WizardStepBase の派生オブジェクト

例外例外
例外種類条件

ArgumentNullException

渡されWizardStepBase派生オブジェクトnull 参照 (Visual Basic では Nothing) です。

解説解説

WizardStepCollection コレクションから WizardStepBase派生オブジェクト削除するには、Remove メソッド使用します代わりに、RemoveAt メソッド使用してWizardStepCollection コレクション指定した位置から WizardStepBase派生オブジェクト削除することもできます

使用例使用例

Remove メソッド使用してWizardStepCollection コレクションから WizardStepBase派生オブジェクト削除する方法の例を次に示します。この例では、Wizard コントロールの WizardSteps プロパティは、WizardStepCollection クラスインスタンスです。

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
  
  ' Remove Step2 from the WizardStepCollection collection
  ' as the page is initialized. Then display the sidebar area
  ' so that it is apparent that the WizardStep2 page is gone.
  
  Sub Page_Init()
    Wizard1.WizardSteps.Remove(Me.WizardStep2)
    Wizard1.DisplaySideBar = True
  End Sub
  
</script>

<html  >
  <body>
    <form id="form1" runat="server">
      <asp:Wizard id="Wizard1" 
        runat="server" 
        displaysidebar="false" >
        <WizardSteps>
          <asp:WizardStep id="WizardStep1" 
            runat="server" 
            title="Step 1">
          </asp:WizardStep>
          <asp:WizardStep id="WizardStep2" 
            runat="server" 
            title="Step 2">
          </asp:WizardStep>
          <asp:WizardStep id="WizardStep3" 
            runat="server" 
            title="Step 3">
          </asp:WizardStep>
        </WizardSteps>
        <HeaderTemplate>
          <b>WizardStepCollection Remove Example</b>
        </HeaderTemplate>
      </asp:Wizard>
    </form>
  </body>
</html>
<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

  // Remove Step2 from the WizardStepCollection collection
  // as the page is initialized. Then display the sidebar area
  // so that it is apparent that the WizardStep2 page is gone.
  
  void Page_Init()
  {
    Wizard1.WizardSteps.Remove(this.WizardStep2);
    Wizard1.DisplaySideBar = true;
  }
  
</script>

<html  >
  <body>
    <form id="form1" runat="server">
      <asp:Wizard id="Wizard1" 
        runat="server" 
        displaysidebar="false" >
        <WizardSteps>
          <asp:WizardStep id="WizardStep1" 
            runat="server" 
            title="Step 1">
          </asp:WizardStep>
          <asp:WizardStep id="WizardStep2" 
            runat="server" 
            title="Step 2">
          </asp:WizardStep>
          <asp:WizardStep id="WizardStep3" 
            runat="server" 
            title="Step 3">
          </asp:WizardStep>
        </WizardSteps>
        <HeaderTemplate>
          <b>WizardStepCollection Remove Example</b>
        </HeaderTemplate>
      </asp:Wizard>
    </form>
  </body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WizardStepCollection クラス
WizardStepCollection メンバ
System.Web.UI.WebControls 名前空間
WizardStepBase クラス
WizardStep クラス
RemoveAt
その他の技術情報
Wizard Web サーバー コントロール


このページでは「.NET Framework クラス ライブラリ リファレンス」からWizardStepCollection.Remove メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からWizardStepCollection.Remove メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からWizardStepCollection.Remove メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

WizardStepCollection.Remove メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



WizardStepCollection.Remove メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS