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

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

HtmlTextWriter.GetAttributeName メソッド

指定した HtmlTextWriterAttribute 値に関連付けられたマークアップ属性の名前を取得します

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

Protected Function GetAttributeName ( _
    attrKey As HtmlTextWriterAttribute _
) As String
Dim attrKey As HtmlTextWriterAttribute
Dim returnValue As String

returnValue = Me.GetAttributeName(attrKey)
protected string GetAttributeName (
    HtmlTextWriterAttribute attrKey
)
protected:
String^ GetAttributeName (
    HtmlTextWriterAttribute attrKey
)
protected String GetAttributeName (
    HtmlTextWriterAttribute attrKey
)
protected function GetAttributeName (
    attrKey : HtmlTextWriterAttribute
) : String

パラメータ

attrKey

マークアップ属性名の取得対象の HtmlTextWriterAttribute。

戻り値
マークアップ属性の名前を格納している文字列

解説解説

attrKey有効な HtmlTextWriterAttribute 値ではない場合GetAttributeName メソッド空の文字列 ("") を返します

使用例使用例

GetAttributeName メソッド使用してSize 列挙値を文字列名に変換する方法次のコード例示します

' Use the GetAttributeName method to associate 
' the Size attribute with its HtmlTextWriteAttribute
' enumeration value in a Write method call.
writer.Write(GetAttributeName(HtmlTextWriterAttribute.Size))
// Use the GetAttributeName method to associate 
// the Size attribute with its HtmlTextWriteAttribute
// enumeration value in a Write method call.
Write(GetAttributeName(HtmlTextWriterAttribute.Size));
// Use the GetAttributeName method to associate 
// the Size attribute with its HtmlTextWriteAttribute
// enumeration value in a Write method call.
Write( GetAttributeName( HtmlTextWriterAttribute::Size ) );
// Use the GetAttributeName method to associate 
// the Size attribute with its HtmlTextWriteAttribute
// enumeration value in a Write method call.
Write(GetAttributeName(HtmlTextWriterAttribute.Size));
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HtmlTextWriter クラス
HtmlTextWriter メンバ
System.Web.UI 名前空間
TextWriter
HtmlTextWriterAttribute


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS