Partager via


CacheableWebPart.RenderCachedOutput, méthode (Microsoft.SharePoint.Portal.WebControls)

Ce membre est réservé à un usage interne et il n'a pas été conçu pour être utilisé directement à partir du code.Creates a data stream.

Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
Public Function RenderCachedOutput ( _
    ByRef output As HtmlTextWriter _
) As Boolean
'Utilisation
Dim instance As CacheableWebPart
Dim output As HtmlTextWriter
Dim returnValue As Boolean

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

Paramètres

  • output
    A data stream

Valeur de retour

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.

Remarques

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

Voir aussi

Référence

CacheableWebPart, classe
Membres CacheableWebPart
Microsoft.SharePoint.Portal.WebControls, espace de noms