ConnectionsZone.CloseVerb プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ConnectionsZone.CloseVerb プロパティの意味・解説 

ConnectionsZone.CloseVerb プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

ConnectionsZone コントロールによって作成され接続ユーザー インターフェイス (UI) をエンド ユーザー閉じられるようにする WebPartVerb オブジェクトへの参照取得します

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

Public Overridable ReadOnly
 Property CloseVerb As WebPartVerb
Dim instance As ConnectionsZone
Dim value As WebPartVerb

value = instance.CloseVerb
public virtual WebPartVerb CloseVerb { get;
 }
public:
virtual property WebPartVerb^ CloseVerb {
    WebPartVerb^ get ();
}
/** @property */
public WebPartVerb get_CloseVerb ()
public function get CloseVerb
 () : WebPartVerb

プロパティ
エンド ユーザー接続 UI閉じられるようにする WebPartVerb

解説解説

ConnectionsZone コントロール使用される場合Close 動詞は、接続 UI下部 (フッター) に表示されるゾーン レベル動詞です。ユーザーClose 動詞クリックすると、接続プロセスキャンセルされ接続 UI閉じますが、ページ接続表示モードのままになります。この時点で、ユーザーページブラウズ モードに戻すか、または、もう一方サーバー コントロールConnect 動詞クリックしてもう一度接続 UI を開くことができます

Close 動詞は、ヘッダーClose 動詞区別する必要があります (詳細については、HeaderCloseVerb プロパティトピック参照してください)。いずれの動詞接続 UI閉じるという同じアクション実行しますが、ヘッダーClose 動詞UI の一番上表示され既定ではハイパーリンク表されるのに対しClose 動詞UI の一番下に表示され既定ではボタン表されます。

CloseVerb プロパティは、UI対応する WebPartVerb オブジェクトへの参照取得するために使用します。このプロパティ自体読み取り専用ですが、動詞への参照取得した後は、必要に応じてプロパティ値を変更できます

Close 動詞プロパティ値は、<asp:connectionszone> 要素タグの中で <closeverb> 要素宣言することにより、宣言設定できます。この動詞プロパティは、Property-Subproperty形式宣言によって設定できます。ここで、SubpropertyWebPartVerb オブジェクトプロパティ表します (例 : CloseVerb-Text)。また、このプロパティは、Property.Subproperty形式プログラムによって設定することもできます (例 : CloseVerb.Text)。

使用例使用例

ConnectionsZone コントロールCloseVerb プロパティ使用するコード例次に示します。この例には、Web ページの、このプロパティ使用方法を示すコードだけが含まれています。例を実行するために必要な他の 2 つコード ファイルについては、ConnectionsZone クラス概要の「使用例」を参照してくださいコード例は、次の 4 つ部分から成ります

この Web ページでは、<asp:connectionszone> 要素宣言し、この要素内で <closeverb> 要素宣言し属性使用して 1 つプロパティ設定してます。また、Page_PreRender メソッドConnectionsZone コントロールClose 動詞1 つプロパティ設定してます。

<%@ Page Language="VB" %>
<%@ register tagprefix="uc1" 
    tagname="DisplayModeMenuVB"
    src="~/displaymodemenuvb.ascx" %>
<%@ Register TagPrefix="aspSample" 
    Namespace="Samples.AspNet.VB.Controls"
 %>

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

<script runat="server">

  Protected Sub Page_PreRender(ByVal
 sender As Object, _
    ByVal e As System.EventArgs)
    
    ' Set properties for verbs.
    connectionsZone1.CancelVerb.Description = _
      "Terminates the connection process"
    connectionsZone1.CloseVerb.Description = _
      "Closes the connections UI"
    connectionsZone1.ConfigureVerb.Description = _
      "Configure the transformer for the connection"
    connectionsZone1.ConnectVerb.Description = _
      "Connect two WebPart controls"
    connectionsZone1.DisconnectVerb.Description = _
      "End the connection between two controls"
    
    ' Set properties for UI text strings.
    connectionsZone1.ConfigureConnectionTitle = _
      "Configure a new connection"
    connectionsZone1.ConnectToConsumerInstructionText = _
      "Choose a consumer connection point"
    connectionsZone1.ConnectToConsumerText = _
      "Select a consumer for the provider to connect with"
    connectionsZone1.ConnectToConsumerTitle = _
      "Send data to this consumer"
    connectionsZone1.ConnectToProviderInstructionText = _
      "Choose a provider connection point"
    connectionsZone1.ConnectToProviderText = _
      "Select a provider for the consumer to connect with"
    connectionsZone1.ConnectToProviderTitle = _
      "Get data from this provider"
    connectionsZone1.ConsumersInstructionText = _
      "WebPart controls that receive data from providers"
    connectionsZone1.ConsumersTitle = "Consumer Controls"
    connectionsZone1.GetFromText = "Receive from"
    connectionsZone1.GetText = "Retrieve"
    connectionsZone1.HeaderText = _
      "Create and Manage Connections"
    connectionsZone1.InstructionText = _
      "Manage connections for the selected WebPart control"
    connectionsZone1.InstructionTitle = _
      "Manage connections for consumers or providers"
    connectionsZone1.NoExistingConnectionInstructionText = _
      "No connections exist. Click the above link to create "
 _
      & "a connection."
    connectionsZone1.NoExistingConnectionTitle = _
      "No current connections"
    connectionsZone1.ProvidersInstructionText = _
      "WebPart controls that send data to consumers"
    connectionsZone1.ProvidersTitle = "Provider controls"

  End Sub

</script>

<html  >
<head runat="server">
    <title>Connection Zone Sample</title>
</head>
<body>
  <form id="form1" runat="server">
  <asp:webpartmanager runat="server" id="mgr">
    <staticconnections>
      <asp:webpartconnection id="connection1" 
        consumerconnectionpointid="ZipCodeConsumer"
        consumerid="zipConsumer"
        providerconnectionpointid="ZipCodeProvider"
 
        providerid="zipProvider" />
    </staticconnections>
  </asp:webpartmanager>
  <uc1:displaymodemenuvb id="menu1" runat="server"
 />
  <div>
  <asp:webpartzone id="WebPartZone1" runat="server">
    <zonetemplate>
      <aspsample:zipcodewebpart id="zipProvider"
 runat="server" 
        title="Zip Code Provider" />
      <aspsample:weatherwebpart id="zipConsumer"
 runat="server" 
        title="Zip Code Consumer" />
    </zonetemplate>
  </asp:webpartzone>
  <asp:connectionszone id="connectionsZone1" runat="server"
 >
    <cancelverb text="Terminate" />
    <closeverb text="Close Zone" />
    <configureverb text="Configure" />
    <connectverb text="Connect Controls" />
    <disconnectverb text="End Connection" />
  </asp:connectionszone>
  </div>
  </form>
</body>
</html>
<%@ Page Language="C#" %>
<%@ register tagprefix="uc1" 
    tagname="DisplayModeMenuCS"
    src="~/displaymodemenucs.ascx" %>
<%@ Register TagPrefix="aspSample" 
    Namespace="Samples.AspNet.CS.Controls" %>

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

<script runat="server">

  protected void Page_PreRender(object sender,
 EventArgs e)
  {
     // Set properties on verbs.
     connectionsZone1.CancelVerb.Description = 
       "Terminates the connection process";
     connectionsZone1.CloseVerb.Description = 
       "Closes the connections UI";
     connectionsZone1.ConfigureVerb.Description =
       "Configure the transformer for the connection";
     connectionsZone1.ConnectVerb.Description =
       "Connect two WebPart controls";
     connectionsZone1.DisconnectVerb.Description =
       "End the connection between two controls";
    
     // Set properties for UI text strings.
     connectionsZone1.ConfigureConnectionTitle = 
       "Configure";
     connectionsZone1.ConnectToConsumerInstructionText = 
       "Choose a consumer connection point";
     connectionsZone1.ConnectToConsumerText = 
       "Select a consumer for the provider to connect with";
     connectionsZone1.ConnectToConsumerTitle = 
       "Send data to this consumer";
     connectionsZone1.ConnectToProviderInstructionText =
       "Choose a provider connection point";
     connectionsZone1.ConnectToProviderText =
       "Select a provider for the consumer to connect with";
     connectionsZone1.ConnectToProviderTitle =
       "Get data from this provider";
     connectionsZone1.ConsumersInstructionText = 
       "WebPart controls that receive data from providers";
     connectionsZone1.ConsumersTitle = "Consumer Controls";
     connectionsZone1.GetFromText = "Receive from";
     connectionsZone1.GetText = "Retrieve";
     connectionsZone1.HeaderText = 
      "Create and Manage Connections";
     connectionsZone1.InstructionText = 
      "Manage connections for the selected WebPart control";
     connectionsZone1.InstructionTitle = 
       "Manage connections for consumers or providers";
     connectionsZone1.NoExistingConnectionInstructionText = 
       "No connections exist. Click the above link to create "
       + "a connection.";
     connectionsZone1.NoExistingConnectionTitle = 
       "No current connections";
     connectionsZone1.ProvidersInstructionText =
       "WebPart controls that send data to consumers";
     connectionsZone1.ProvidersTitle = "Provider controls";
     
  }
</script>

<html  >
<head runat="server">
    <title>Connection Zone Sample</title>
</head>
<body>
  <form id="form1" runat="server">
  <asp:webpartmanager runat="server" id="mgr">
    <staticconnections>
      <asp:webpartconnection id="connection1" 
        consumerconnectionpointid="ZipCodeConsumer"
        consumerid="zipConsumer"
        providerconnectionpointid="ZipCodeProvider" 
        providerid="zipProvider" />
    </staticconnections>
  </asp:webpartmanager>
  <uc1:displaymodemenucs id="menu1" runat="server" />
  <div>
  <asp:webpartzone id="WebPartZone1" runat="server">
    <zonetemplate>
      <aspsample:zipcodewebpart id="zipProvider" runat="server"
 
        title="Zip Code Provider"  />
      <aspsample:weatherwebpart id="zipConsumer" runat="server"
 
        title="Zip Code Consumer" />
    </zonetemplate>
  </asp:webpartzone>
  <asp:connectionszone id="connectionsZone1" runat="server"
 >
    <cancelverb text="Terminate" />
    <closeverb text="Close Zone" />
    <configureverb text="Configure" />
    <connectverb text="Connect Controls" />
    <disconnectverb text="End Connection" />
  </asp:connectionszone>
  </div>
  </form>
</body>
</html>

ブラウザページ読み込みます。[表示モード] コントロール使用して接続モード切り替えます。[ZIP Code Provider] コントロール動詞メニュー矢印クリックしConnect 動詞クリックします。[End Connection] ボタンクリックしてページ上の宣言による接続で既に接続されているコントロール接続解除します。[Select a consumer for the provider to connect with] ハイパーリンククリックしてさまざまなプロパティ設定による効果確認します接続 UI下部にある [Close Zone] ボタン上にマウス ポインタを置くと、ツールヒントカスタム説明テキスト表示されます。接続ゾーンの一番上にあるヘッダーClose 動詞ハイパーリンク表されており、Close 動詞へのプロパティ割り当てヘッダーClose 動詞影響していないことを確認してください

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConnectionsZone クラス
ConnectionsZone メンバ
System.Web.UI.WebControls.WebParts 名前空間
WebPartVerb
CatalogZoneBase.CloseVerb プロパティ


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

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

辞書ショートカット

すべての辞書の索引

ConnectionsZone.CloseVerb プロパティのお隣キーワード
検索ランキング

   

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



ConnectionsZone.CloseVerb プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS