Share via


ContentByQueryWebPart Constructor (String, String, String)

Creates 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.String
    Main XSL to use if MainXslLink is not specified.
  • defaultHeaderXsl
    Type: System.String
    Header XSL to use if HeaderXslLink is not specified.
  • defaultItemXsl
    Type: System.String
    Item XSL to use if ItemXslLink is not specified.

See Also

Reference

ContentByQueryWebPart Class

ContentByQueryWebPart Members

ContentByQueryWebPart Overload

Microsoft.SharePoint.Publishing.WebControls Namespace

ContentByQueryWebPart