Share via


BaseXsltListWebPart.AddDataSourceParameters method

Adds a new Parameter to the ParameterCollection.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected Function AddDataSourceParameters ( _
    selectParameters As ParameterCollection, _
    name As String, _
    defaultValue As String _
) As Parameter
'Usage
Dim selectParameters As ParameterCollection
Dim name As String
Dim defaultValue As String
Dim returnValue As Parameter

returnValue = Me.AddDataSourceParameters(selectParameters, _
    name, defaultValue)
protected Parameter AddDataSourceParameters(
    ParameterCollection selectParameters,
    string name,
    string defaultValue
)

Parameters

Return value

Type: System.Web.UI.WebControls.Parameter
The new parameter that is added.

Remarks

This method creates a new Parameter with a specified name and default value and adds it to selectParameters.

See also

Reference

BaseXsltListWebPart class

BaseXsltListWebPart members

Microsoft.SharePoint.WebPartPages namespace