BaseXsltListWebPart.AddDataSourceParameters Method
Adds a new Parameter to the ParameterCollection.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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
selectParameters
Type: System.Web.UI.WebControls.ParameterCollectionThe parameters collection to which a new Parameter is added.
name
Type: System.StringThe name of the Parameter.
defaultValue
Type: System.StringThe default value of the Parameter.
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.