HttpResponse.Pics(String) 메서드

정의

HTTP PICS-Label 헤더를 출력 스트림에 추가합니다.

public:
 void Pics(System::String ^ value);
public void Pics (string value);
member this.Pics : string -> unit
Public Sub Pics (value As String)

매개 변수

value
String

PICS-Label 헤더에 추가할 문자열입니다.

예제

다음 예제는 이미지를 표시하는 ASP.NET 페이지입니다. 페이지 코드는 메서드를 Pics 호출하여 응답에 대한 HTTP PICS-Label 헤더를 설정합니다. 메서드에 매개 변수 Pics 로 전달되는 문자열은 ICRA(인터넷 콘텐츠 등급 연결) 웹 사이트에서 생성된 등급 레이블을 나타냅니다.

<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

    // When this page is loaded, the Pics method
    // sets the PICS-Label header for the response.
    private void Page_Load(object sender, EventArgs e)
    {
        Response.Pics( 
          "(pics-1.1 <http://www.icra.org/ratingsv02.html> " + 
          "comment <ICRAonline EN v2.0> " + 
          "l r (nz 1 vz 1 lz 1 oz 1 cz 1) " + 
          "<http://www.rsac.org/ratingsv01.html> " +
          " l r (n 0 s 0 v 0 l 0))");
    }

</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
        <img height="75%" src="animated.gif" width="100%" alt="An animated GIF"/>
    </form>
</body>
</html>
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

    ' When this page is loaded, the Pics method
    ' sets the PICS-Label header for the response.    
    Private Sub Page_Load(sender As Object, e As EventArgs)       
        Response.PICS( _
          "(pics-1.1 <http://www.icra.org/ratingsv02.html> " & _
          "comment <ICRAonline EN v2.0> " & _
          "l r (nz 1 vz 1 lz 1 oz 1 cz 1) " & _
          "<http://www.rsac.org/ratingsv01.html> " & _
          "l r (n 0 s 0 v 0 l 0))")
    End Sub

</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
        <img height="75%" src="animated.gif" width="100%" alt="An animated GIF"/>
    </form>
</body>
</html>

설명

PICS(인터넷 콘텐츠 선택용 플랫폼)는 콘텐츠 레이블 지정을 위한 W3C(World Wide Web Consortium) 표준입니다. PICS는 기본적으로 등급 시스템을 만들기 위한 언어입니다.

모든 값은 PICS 레이블일 수 있습니다. ASP.NET 레이블의 유효성을 검사하지 않습니다. 문자열의 최대 길이는 255자입니다. PICS 표준 및 구문에 대한 자세한 내용은 World Wide 웹 컨소시엄 웹 사이트를 참조하세요.

적용 대상