CssRegistration.Register Method (String, Boolean, String)
Registers the specified cascading style sheet (CSS) in master pages, content pages, or .ascx code pages, and specifies the user interface (UI) version with which the style sheet is compatible, and 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, _
uiVersion As String _
)
'Usage
Dim cssRef As String
Dim enableTheming As Boolean
Dim uiVersion As StringCssRegistration.Register(cssRef, enableTheming, _
uiVersion)
public static void Register(
string cssRef,
bool enableTheming,
string uiVersion
)
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.
uiVersion
Type: System.StringA string that contains the UI version with which the style sheet is compatible. Can be a number, a semicolon-delimited list of numbers, or a null reference (Nothing in Visual Basic).