System.Web.UI.WebControls.ParameterCollection.Add Method

Creates a System.Web.UI.WebControls.Parameter object with the specified name and default value, and appends it to the end of the collection.

Syntax

public int Add (string name, string value)

Parameters

name
The name of the parameter.
value
A string that serves as a default value for the parameter.

Returns

The index value of the added item.

Remarks

Use the ParameterCollection.Add(string, string) method to create and append a System.Web.UI.WebControls.Parameter object with a default value to the end of the collection. This implementation of the method creates the System.Web.UI.WebControls.Parameter object using the name and default value specified by the name and value parameters, respectively, and appends it to the collection.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0