CssRegistration.Register Method (String, Boolean)

Registers the specified cascading style sheet (CSS) in master pages, content pages, or .ascx code pages, and specifies whether to reference the themed version of this CSS file if a theme is applied.

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

Syntax

'Declaration
Public Shared Sub Register ( _
    cssRef As String, _
    enableTheming As Boolean _
)
'Usage
Dim cssRef As String
Dim enableTheming As BooleanCssRegistration.Register(cssRef, enableTheming)
public static void Register(
    string cssRef,
    bool enableTheming
)

Parameters

  • cssRef
    Type: System.String

    A string that contains a reference to the CSS file.

  • enableTheming
    Type: System.Boolean

    true to reference the themed version of this CSS file if a theme is applied; otherwise, false.

See Also

Reference

CssRegistration Class

CssRegistration Members

Register Overload

Microsoft.SharePoint.WebControls Namespace