HtmlTextWriter.SelfClosingTagEnd フィールドとは? わかりやすく解説

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

HtmlTextWriter.SelfClosingTagEnd フィールド

自己終了マークアップ要素の終了スラッシュ記号と右山かっこ (/>) を表します。

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

Public Const SelfClosingTagEnd As
 String
Dim value As String

value = HtmlTextWriter.SelfClosingTagEnd
public const string SelfClosingTagEnd
public:
literal String^ SelfClosingTagEnd
public static final String SelfClosingTagEnd
public const var SelfClosingTagEnd
 : String
解説解説
使用例使用例

カスタム FileName プロパティの値を出力し、続けて SelfClosingTagEnd フィールドによって表された引用符と文字を出力する方法を次のコード例に示します。このコード例では、Write メソッドを呼び出し、SelfClosingTagEnd フィールドをパラメータ引数として渡して、要素を閉じています。

このコード例では、FileName プロパティ値を出力してから、次のマークアップを出力します。

" />

' Write the name of the image file from the 
' FileName property, close the path, and then
' close the <img> element.
writer.Write(FileName)
writer.Write(HtmlTextWriter.DoubleQuoteChar)
writer.Write(HtmlTextWriter.SelfClosingTagEnd)
// Write the name of the image file from the 
// FileName property, close the path, and then
// close the <img> element.
writer.Write(FileName);
writer.Write(HtmlTextWriter.DoubleQuoteChar);
writer.Write(HtmlTextWriter.SelfClosingTagEnd);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HtmlTextWriter クラス
HtmlTextWriter メンバ
System.Web.UI 名前空間
TextWriter
RenderBeginTag



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

HtmlTextWriter.SelfClosingTagEnd フィールドのお隣キーワード
検索ランキング

   

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



HtmlTextWriter.SelfClosingTagEnd フィールドのページの著作権

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

©2026 GRAS Group, Inc.RSS