CssRegistration.Register Method (String, 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.

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, _
    uiVersion As String _
)
'Usage
Dim cssRef As String
Dim uiVersion As StringCssRegistration.Register(cssRef, uiVersion)
public static void Register(
    string cssRef,
    string uiVersion
)

Parameters

  • cssRef
    Type: System.String

    A string that contains a reference to the CSS file.

  • uiVersion
    Type: System.String

    A 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).

See Also

Reference

CssRegistration Class

CssRegistration Members

Register Overload

Microsoft.SharePoint.WebControls Namespace