共用方式為


CssRegistration.Render Method

At design time, renders the link associated with the associated CssLink control.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Overrides Sub Render ( _
    output As HtmlTextWriter _
)
'Usage
Dim output As HtmlTextWriter

Me.Render(output)
protected override void Render(
    HtmlTextWriter output
)

Parameters

Remarks

At run time, use the M:Microsoft.SharePoint.WebControls.CssLink.Render(System.Web.UI.HtmlTextWriter) method to render the link. However, at design-time, the CssLink class is in the master page while the CssRegistration class is often in the ASPX page. Since the controls cannot communicate with each other, you must use this CssRegistration.Render method to render the link.

See Also

Reference

CssRegistration Class

CssRegistration Members

Microsoft.SharePoint.WebControls Namespace