HtmlTextWriter.SelfClosingTagEnd 필드

정의

자체적으로 닫는 태그 요소의 닫는 슬래시 기호와 닫는 꺾쇠 괄호(/>)를 나타냅니다.

public: System::String ^ SelfClosingTagEnd;
public const string SelfClosingTagEnd;
val mutable SelfClosingTagEnd : string
Public Const SelfClosingTagEnd As 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)

설명

SelfClosingTagEnd 필드는 자체 닫는 태그 요소를 생성할 때 메서드에서 사용됩니다RenderBeginTag.

적용 대상

추가 정보