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

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

TagPrefixAttribute.TagPrefix プロパティ

指定したコントロールタグ プリフィックス取得します

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

Dim instance As TagPrefixAttribute
Dim value As String

value = instance.TagPrefix
public string TagPrefix { get;
 }
public:
property String^ TagPrefix {
    String^ get ();
}
/** @property */
public String get_TagPrefix ()

プロパティ
タグ プリフィックス

使用例使用例
Imports System
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls

<assembly: TagPrefix("CustomControls", "custom")>
 _

Namespace CustomControls
   
   ' Simple custom control
   Public Class MyVB_Control 
   Inherits Control
      Private message As String
 = "Hello"
      
      Public  Property getMessage() As
 String
         Get
            Return message
         End Get
         Set (ByVal value As
 String)
            message = value
         End Set
      End Property
      
      <System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand,
 Name:="FullTrust")> _
      Protected Overrides Sub
 Render(writer As HtmlTextWriter)
         writer.Write(("<span style='background-color:aqua;
 font:8pt tahoma, verdana;'> " + Me.getMessage + "<br>"
 + "VB version. The time on the server is " + System.DateTime.Now.ToLongTimeString() + "</span>"))
      End Sub 'Render
   End Class 'MyControl
End Namespace 'CustomControls
 

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

[assembly:TagPrefix("CustomControls", "custom")]


namespace CustomControls
{

    // Simple custom control
    public class MyCS_Control : Control
      {
            private String message = "Hello";
            
            public virtual String Message
            {
                  get
                  {
                        return message;
                  }
                  set
                  {
                        message = value;
                  }
            }
            
            [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand,
 Name="FullTrust")] 
            protected override void Render(
 HtmlTextWriter writer)
            {
            writer.Write("<span style='background-color:aqua; font:8pt tahoma,
 verdana;'> "
                        + this.Message + "<br>"
 + "C# version. The time on the server is " + System.DateTime.Now.ToLongTimeString()
                        + "</span>");
                  
            }
      
      }

}

import System.*;
import System.Web.*;
import System.Web.UI.*;
import System.Web.UI.WebControls.*;

/** @assembly TagPrefix("CustomControls", "custom")
 */
// Simple custom control
public class MyJSL_Control extends Control
{
    private String message = "Hello";

    /** @property 
     */
    public String get_Message()
    {
        return message;
    } //get_Message

    /** @property 
     */
    public void set_Message(String value)
    {
        message = value;
    } //set_Message

    protected void Render(HtmlTextWriter writer)
    {
        writer.Write("<span style='background-color:aqua; font:8pt"
            + " tahoma, verdana;'> " + this.get_Message()
 + "<br>"
            + "VJ# version. The time on the server is "
            + System.DateTime.get_Now().ToLongTimeString() + "</span>");
    } //Render
} //MyJSL_Control
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TagPrefixAttribute クラス
TagPrefixAttribute メンバ
System.Web.UI 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS