HttpResponse.Pics(String) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Aggiunge un'intestazione HTTP PICS-Label
al flusso di output.
public:
void Pics(System::String ^ value);
public void Pics (string value);
member this.Pics : string -> unit
Public Sub Pics (value As String)
Parametri
- value
- String
Stringa da aggiungere all'intestazione PICS-Label
.
Esempio
L'esempio seguente è una pagina ASP.NET che visualizza un'immagine. Il codice della pagina chiama il Pics metodo per impostare l'intestazione HTTP PICS-Label
per la risposta. La stringa passata come parametro al Pics metodo rappresenta un'etichetta di classificazione generata dal sito Web ICRA (Internet Content Rating Association).
<%@ 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>
Commenti
Platform for Internet Content Selection (PICS) è uno standard World Wide Web Consortium (W3C) per l'etichettatura del contenuto. PICS è essenzialmente una lingua per la creazione di un sistema di classificazione.
Qualsiasi valore può essere un'etichetta PICS; ASP.NET non convalida l'etichetta. La lunghezza massima della stringa è di 255 caratteri. Per altre informazioni sugli standard e sulla sintassi PICS, vedere il sito Web World Wide Web Consortium .
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: nel corso del 2024 verranno dismessi i problemi di GitHub come meccanismo di feedback per il contenuto e verranno sostituiti con un nuovo sistema di feedback. Per altre informazioni, vedere:Invia e visualizza il feedback per