HttpResponse.Pics メソッド
アセンブリ: System.Web (system.web.dll 内)


PICS (Platform for Internet Content Selection) は、コンテンツのラベリングに関する W3C (World Wide Web Consortium) の規格です。PICS は、基本的には規制システムを作成するための言語です。
どのような値でも PICS ラベルにできます。ASP.NET ではラベルを検証しません。文字列の最大長は 255 文字です。PICS の規格と構文の詳細については、W3C (World Wide Web Consortium) の Web サイト (http://www.w3c.org) を参照してください。

次のコード例は、イメージを表示する ASP.NET ページです。このページのコードは、Pics メソッドを呼び出して、応答の PICS-Label HTTP ヘッダーを設定します。Pics メソッドへのパラメータとして渡される String は、ICRA (Internet Content Rating Association) の Web サイトで生成されたレーティング ラベルを表します。
<%@ Page Language="VB" %> <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> <head> </head> <body> <form runat="server"> <img height="75%" src="animated.gif" width="100%" /> </form> </body> </html>
<%@ Page Language="C#" %> <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> <head> </head> <body> <form runat="server"> <img height="75%" src="animated.gif" width="100%" /> </form> </body> </html>

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からHttpResponse.Pics メソッドを検索する場合は、下記のリンクをクリックしてください。

- HttpResponse.Pics メソッドのページへのリンク