HtmlTextWriter.Encoding 속성

정의

HtmlTextWriter 개체가 페이지에 내용을 쓰는 데 사용하는 인코딩을 가져옵니다.

public:
 virtual property System::Text::Encoding ^ Encoding { System::Text::Encoding ^ get(); };
public override System.Text.Encoding Encoding { get; }
member this.Encoding : System.Text.Encoding
Public Overrides ReadOnly Property Encoding As Encoding

속성 값

Encoding

페이지에 쓰는 태그의 Encoding입니다.

예제

다음 코드 예제에서는 속성을 사용 하 여 Encoding 사용자 지정 컨트롤이 포함 된 페이지에 텍스트를 렌더링 하는 데 사용 하는 인코딩의 형식을 작성 하는 방법을 보여 줍니다.

// Get the value of the current markup writer's
// Encoding property, convert it to a string, and
// write it to the markup stream.
writer->Write( String::Concat( "Encoding : ", writer->Encoding, "<br>" ) );
// Get the value of the current markup writer's 
// Encoding property, convert it to a string, and 
// write it to the markup stream.
writer.Write("Encoding : " + writer.Encoding.ToString() + "<br>");
' Get the value of the current markup writer's 
' Encoding property, convert it to a string, and 
' write it to the HtmlTextWriter stream.
writer.Write(("Encoding : " + writer.Encoding.ToString() & "<br>"))

설명

속성은 Encoding 기본 TextWriter 개체에서 해당 값을 가져옵니다.

적용 대상

추가 정보