ContentByQueryWebPart Constructor (String, String, String)
Initializes a new instance of a Content Query Web Part object with default XSL.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Sub New ( _
defaultMainXsl As String, _
defaultHeaderXsl As String, _
defaultItemXsl As String _
)
'Usage
Dim defaultMainXsl As String
Dim defaultHeaderXsl As String
Dim defaultItemXsl As String
Dim instance As New ContentByQueryWebPart(defaultMainXsl, _
defaultHeaderXsl, defaultItemXsl)
public ContentByQueryWebPart(
string defaultMainXsl,
string defaultHeaderXsl,
string defaultItemXsl
)
Parameters
defaultMainXsl
Type: System.StringHeader XSL to use if HeaderXslLink is not specified.
defaultHeaderXsl
Type: System.StringItem XSL to use if ItemXslLink is not specified.
defaultItemXsl
Type: System.StringMain XSL to use if MainXslLink is not specified.
See Also
Reference
ContentByQueryWebPart Overload