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

Dim instance As TagPrefixInfo Dim value As String value = instance.TagPrefix instance.TagPrefix = value
/** @property */ public String get_TagPrefix () /** @property */ public void set_TagPrefix (String value)
タグ プリフィックス。

TagPrefix プロパティは、コントロールが存在する名前空間で使用されるエイリアスを定義します。これはユーザー コントロールとカスタム コントロールに適用されます。この値は、ASP.NET コード内のタグ名の前に設定されます。たとえば、<myTag: myControl /> の場合、「myTag」になります。

TagPrefix プロパティを使用する方法を次のコード例に示します。このコード例は、PagesSection クラスのトピックで取り上げているコード例の一部分です。
' Get all current Controls in the collection. Dim j As Int32 For j = 0 To pagesSection.Controls.Count - 1 Console.WriteLine("Control {0}:", j) Console.WriteLine(" TagPrefix = '{0}' ", _ pagesSection.Controls(j).TagPrefix) Console.WriteLine(" TagName = '{0}' ", _ pagesSection.Controls(j).TagName) Console.WriteLine(" Source = '{0}' ", _ pagesSection.Controls(j).Source) Console.WriteLine(" Namespace = '{0}' ", _ pagesSection.Controls(j).Namespace) Console.WriteLine(" Assembly = '{0}' ", _ pagesSection.Controls(j).Assembly) Next
// Get all current Controls in the collection. for (int i = 0; i < pagesSection.Controls.Count; i++) { Console.WriteLine("Control {0}:", i); Console.WriteLine(" TagPrefix = '{0}' ", pagesSection.Controls[i].TagPrefix); Console.WriteLine(" TagName = '{0}' ", pagesSection.Controls[i].TagName); Console.WriteLine(" Source = '{0}' ", pagesSection.Controls[i].Source); Console.WriteLine(" Namespace = '{0}' ", pagesSection.Controls[i].Namespace); Console.WriteLine(" Assembly = '{0}' ", pagesSection.Controls[i].Assembly); }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からTagPrefixInfo.TagPrefix プロパティを検索する場合は、下記のリンクをクリックしてください。

- TagPrefixInfo.TagPrefix プロパティのページへのリンク