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.StringA string that contains a reference to the CSS file.
enableTheming
Type: System.Booleantrue to reference the themed version of this CSS file if a theme is applied; otherwise, false.