HttpResponse.Pics(String) Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Anexa un encabezado HTTP PICS-Label
al flujo de salida.
public:
void Pics(System::String ^ value);
public void Pics (string value);
member this.Pics : string -> unit
Public Sub Pics (value As String)
Parámetros
- value
- String
Cadena que se agregará al encabezado PICS-Label
.
Ejemplos
El ejemplo siguiente es una página ASP.NET que muestra una imagen. El código de página llama al Pics método para establecer el encabezado HTTP PICS-Label
para la respuesta. La cadena que se pasa como parámetro al Pics método representa una etiqueta de clasificación generada desde el sitio web de la Asociación de clasificación de contenido de Internet (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>
Comentarios
Platform for Internet Content Selection (PICS) es un estándar de World Wide Web Consortium (W3C) para el etiquetado de contenido. PICS es básicamente un lenguaje para crear un sistema de clasificaciones.
Cualquier valor puede ser una etiqueta PICS; ASP.NET no valida la etiqueta. La longitud máxima de la cadena es de 255 caracteres. Para obtener más información sobre los estándares y la sintaxis picS, consulte el sitio web de World Wide Web Consortium .