CssRegistration.Register Method (String, String, Boolean)
Registers the specified cascading style sheet (CSS) in master pages, content pages, or .ascx code pages using the specified conditional expression, and specifies 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 _
)
'Usage
Dim cssRef As String
Dim conditionalExpression As String
Dim revealToNonIE As BooleanCssRegistration.Register(cssRef, conditionalExpression, _
revealToNonIE)
public static void Register(
string cssRef,
string conditionalExpression,
bool revealToNonIE
)
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.