スラッシュ (/) 文字を表します。
Public Const SlashChar As Char
[C#]
public const char SlashChar;
[C++]
public: const __wchar_t SlashChar;
[JScript]
public var SlashChar : Char;
解説
この定数は、 HtmlTextWriter クラスを使用して URL を記述するときに使用します。
使用例
' The endTag variable must be declared as a string
' in the class variable. Use the TagLeftChar,
' SlashChar, and TagRightChar fields and
' the GetTagName method to assign a value to
' the endTag variable.
endTag = TagLeftChar & SlashChar & GetTagName(HtmlTextWriterTag.Font) & TagRightChar
' Use the PushEndTag method to write the custom
' endTag string value as its parameter.
PushEndTag(endTag)
End If
[C#]
// The endTag variable must be declared as a string
// in the class variable. Use the TagLeftChar,
// SlashChar, and TagRightChar fields and the
// GetTagName method to assign a value to the
// endTag variable.
endTag = TagLeftChar + SlashChar + GetTagName(HtmlTextWriterTag.Font) + TagRightChar;
// Use the PushEndTag method to write the custom
// endTag string value as its parameter.
PushEndTag(endTag);
[C++]
// The endTag variable must be declared as a String* in the class
// variable for this assignment to work. Use the
// TagLeftChar, SlashChar, and TagRightChar fields and the
// GetTagName method to assign a value to the endTag variable.
endTag = String::Concat( __box(TagLeftChar), __box(SlashChar), GetTagName(HtmlTextWriterTag::Font), __box(TagRightChar));
// Use the PushEndTag method to write the custom
// endTag String* value as its parameter.
PushEndTag(endTag);
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ
参照
HtmlTextWriter クラス | HtmlTextWriter メンバ | System.Web.UI 名前空間