Compartir a través de


: CacheableWebPart.RenderCachedOutput (Método) (Microsoft.SharePoint.Portal.WebControls)

Este miembro está reservado para uso interno y no está destinado a ser utilizado desde el código.Creates a data stream.

Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)

Sintaxis

'Declaración
Public Function RenderCachedOutput ( _
    ByRef output As HtmlTextWriter _
) As Boolean
'Uso
Dim instance As CacheableWebPart
Dim output As HtmlTextWriter
Dim returnValue As Boolean

returnValue = instance.RenderCachedOutput(output)
public bool RenderCachedOutput (
    ref HtmlTextWriter output
)

Parámetros

  • output
    A data stream

Valor devuelto

true if the RenderCachedOutput method successfully retrieves an HTML fragment from the cache and writes it to the output stream; otherwise, false. If RenderCachedOutput returns true, your RenderWebPart method does not need to render any HTML. If RenderCachedOutput returns false, your RenderWebPart method needs to continue to execute and run the code that renders the actual HTML output and then call the StoreCachedOutput(System.Web.UI.HtmlTextWriter) method to save the HTML fragment in the cache.

Comentarios

Data cannot be changed for the period of time set by the CacheTimeout property.

Vea también

Referencia

CacheableWebPart (Clase)
CacheableWebPart (Miembros)
Microsoft.SharePoint.Portal.WebControls (Espacio de nombres)