Compartir a través de


: QueryResultBase.RenderWebPart (Método) (Microsoft.SharePoint.Portal.WebControls)

The RenderWebPart method of the QueryResultBase class overrides the Microsoft.SharePoint.WebPartPages.WebPart.RenderWebPart method. This method renders the HTML for the body of this Web Part to the client.

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

Sintaxis

'Declaración
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Protected Overrides Sub RenderWebPart ( _
    writer As HtmlTextWriter _
)
'Uso
Dim writer As HtmlTextWriter

Me.RenderWebPart(writer)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
protected override void RenderWebPart (
    HtmlTextWriter writer
)

Parámetros

  • writer
    The HtmlTextWriter object that receives the WebPart content.

Comentarios

The RenderWebPart method may not be called in all cases (for example, when the Web Part is minimized, or if the page is being rendered to a non-HTML device).

Vea también

Referencia

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