CssRegistration.Register Method (String, String, Boolean, String)
Registers the specified cascading style sheet (CSS) in master pages, content pages, or .ascx code pages using the specified conditional expression, and specifies the user interface (UI) version with which the style sheet is compatible, and whether to reveal to internet browsers other than Internet Explorer.
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, _
conditionalExpression As String, _
revealToNonIE As Boolean, _
uiVersion As String _
)
'Usage
Dim cssRef As String
Dim conditionalExpression As String
Dim revealToNonIE As Boolean
Dim uiVersion As StringCssRegistration.Register(cssRef, conditionalExpression, _
revealToNonIE, uiVersion)
public static void Register(
string cssRef,
string conditionalExpression,
bool revealToNonIE,
string uiVersion
)
Parameters
cssRef
Type: System.StringA string that contains a reference to the CSS file.
conditionalExpression
Type: System.StringA string that contains the conditional expression.
revealToNonIE
Type: System.Booleantrue to reveal to internet browsers other than Internet Explorer; 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).