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

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

AdCreatedEventArgs.AdProperties プロパティ

現在表示されている広告すべての広告プロパティ格納されている System.Collections.IDictionary オブジェクト取得します

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

Public ReadOnly Property
 AdProperties As IDictionary
Dim instance As AdCreatedEventArgs
Dim value As IDictionary

value = instance.AdProperties
public IDictionary AdProperties { get; }
public:
property IDictionary^ AdProperties {
    IDictionary^ get ();
}
/** @property */
public IDictionary get_AdProperties ()
public function get AdProperties
 () : IDictionary

プロパティ
現在表示されている広告広告プロパティリスト格納されている System.Collections.IDictionary既定値は String.Empty です。

解説解説
使用例使用例

OnAdCreated イベント ハンドラAdProperties プロパティ使用してカスタム キャプション作成する方法次のコード例示します

<%@ Page Language="VB" AutoEventWireup="True"
 %>

<html>
 <head>
 
 </head>
 
    <script language="VB" runat="server">
       Sub AdCreated_Event(sender As Object,
 e As AdCreatedEventArgs) 
          Message.Text = e.AdProperties("Caption")
       End Sub     
    </script>
 
 <body>
 
    <form runat="server">
 
       <h3>AdRotator Example</h3>
 
       <asp:AdRotator id="test1" runat="server"
            AdvertisementFile = "Ads.xml"
        Borderwidth="1"
            Target="_newwwindow"
            OnAdCreated="AdCreated_Event"/><br><br>
 
       <asp:label id="Message" runat="server"/>
 
    </form>
 
 </body>
 </html>

<%@ Page Language="C#" AutoEventWireup="True" %>

<html>
 <head>
 
 </head>
 
    <script language="C#" runat="server">
       void AdCreated_Event(Object sender, AdCreatedEventArgs
 e) 
       {
          Message.Text=(string)e.AdProperties["Caption"];
       }      
    </script>
 
 <body>
 
    <form runat="server">
 
       <h3>AdRotator Example</h3>
 
       <asp:AdRotator id="test1" runat="server"
            AdvertisementFile = "Ads.xml"
        Borderwidth="1"
            Target="_newwwindow"
            OnAdCreated="AdCreated_Event"/><br><br>
 
       <asp:label id="Message" runat="server"/>
 
    </form>
 
 </body>
 </html>

<%@ Page Language="JScript" AutoEventWireup="True" %>

<html>
 <head>
 
 </head>
 
    <script language="JScript" runat="server">
       function AdCreated_Event(sender, e : AdCreatedEventArgs)
 
       {
          Message.Text=String(e.AdProperties["Caption"]);
       }      
    </script>
 
 <body>
 
    <form runat="server">
 
       <h3>AdRotator Example</h3>
 
       <asp:AdRotator id="test1" runat="server"
            AdvertisementFile = "Ads.xml"
        Borderwidth="1"
            Target="_newwwindow"
            OnAdCreated="AdCreated_Event"/><br><br>
 
       <asp:label id="Message" runat="server"/>
 
    </form>
 
 </body>
 </html>

<Advertisements>
 
     <Ad>
         <ImageUrl>image1.jpg</ImageUrl>
         <NavigateUrl>http://www.microsoft.com</NavigateUrl>
         <AlternateText>Microsoft
 Main Site</AlternateText>
         <Impressions>80</Impressions>
         <Keyword>Topic1</Keyword>
         <Caption>This
 is the caption for Ad#1</Caption>
          
     </Ad>
 
     <Ad>
         <ImageUrl>image2.jpg</ImageUrl>
         <NavigateUrl>http://www.wingtiptoys.com</NavigateUrl>
         <AlternateText>Wing
 Tip Toys</AlternateText>
         <Impressions>80</Impressions>
         <Keyword>Topic2</Keyword>
         <Caption>This
 is the caption for Ad#2</Caption>
                
     </Ad>
 
 </Advertisements>

広告カスタム属性広告 XML ファイル含め方法次のコード例示しますXML ファイル詳細については、AdRotator クラスの AdvertisementFile プロパティトピック参照してください

 <Advertisements>
  <Ad>
  <ImageUrl>image1.jpg</ImageUrl>
  <NavigateUrl>http://www.microsoft.com</NavigateUrl>
  <AlternateText>Microsoft Main Site</AlternateText>
  <Impressions>80</Impressions>
  <Keyword>Topic1</Keyword>
  <Caption>This is the caption for Ad#1</Caption> 
  </Ad>
  <Ad>
  <ImageUrl>image2.jpg</ImageUrl>
  <NavigateUrl>http://www.wingtiptoys.com</NavigateUrl>
  <AlternateText>Wingtip Toys</AlternateText>
  <Impressions>80</Impressions>
  <Keyword>Topic2</Keyword>
  <Caption>This is the caption for Ad#2</Caption> 
  </Ad>
 </Advertisements>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AdCreatedEventArgs クラス
AdCreatedEventArgs メンバ
System.Web.UI.WebControls 名前空間
AdRotator.AdvertisementFile
OnAdCreated
System.Collections.IDictionary
String.Empty


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

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

辞書ショートカット

すべての辞書の索引

「AdCreatedEventArgs.AdProperties プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS