RouteParameter Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the RouteParameter class.
Overloads
RouteParameter() |
Initializes a new instance of the RouteParameter class. |
RouteParameter(RouteParameter) |
Initializes a new instance of the RouteParameter class by using the values of the specified instance. |
RouteParameter(String, String) |
Initializes a new instance of the RouteParameter class by using the specified name for the parameter and the specified key for route data. |
RouteParameter(String, DbType, String) |
Initializes a new instance of the RouteParameter class by using the specified name and database type for the parameter, and by using the specified key for the route data. |
RouteParameter(String, TypeCode, String) |
Initializes a new instance of the RouteParameter class by using the specified name and type for the parameter, and by using the specified key for the route data. |
RouteParameter()
Initializes a new instance of the RouteParameter class.
public:
RouteParameter();
public RouteParameter ();
Public Sub New ()
Remarks
You use this constructor method to initialize a RouteParameter object and set default values. The properties are initialized to the following values:
RouteKey is set to an empty string ("").
Name is set to an empty string.
DefaultValue is set to
null
.
See also
Applies to
RouteParameter(RouteParameter)
Initializes a new instance of the RouteParameter class by using the values of the specified instance.
protected:
RouteParameter(System::Web::UI::WebControls::RouteParameter ^ original);
protected RouteParameter (System.Web.UI.WebControls.RouteParameter original);
new System.Web.UI.WebControls.RouteParameter : System.Web.UI.WebControls.RouteParameter -> System.Web.UI.WebControls.RouteParameter
Protected Sub New (original As RouteParameter)
Parameters
- original
- RouteParameter
An object from which the current instance is initialized.
Remarks
This constructor is used to clone a RouteParameter instance.
See also
Applies to
RouteParameter(String, String)
Initializes a new instance of the RouteParameter class by using the specified name for the parameter and the specified key for route data.
public:
RouteParameter(System::String ^ name, System::String ^ routeKey);
public RouteParameter (string name, string routeKey);
new System.Web.UI.WebControls.RouteParameter : string * string -> System.Web.UI.WebControls.RouteParameter
Public Sub New (name As String, routeKey As String)
Parameters
- name
- String
The name of the parameter instance.
- routeKey
- String
The name of the route segment that contains the value for the parameter.
See also
Applies to
RouteParameter(String, DbType, String)
Initializes a new instance of the RouteParameter class by using the specified name and database type for the parameter, and by using the specified key for the route data.
public:
RouteParameter(System::String ^ name, System::Data::DbType dbType, System::String ^ routeKey);
public RouteParameter (string name, System.Data.DbType dbType, string routeKey);
new System.Web.UI.WebControls.RouteParameter : string * System.Data.DbType * string -> System.Web.UI.WebControls.RouteParameter
Public Sub New (name As String, dbType As DbType, routeKey As String)
Parameters
- name
- String
The name of the parameter instance.
- dbType
- DbType
The database type of the parameter instance.
- routeKey
- String
The name of the route segment that contains the value for the parameter.
See also
Applies to
RouteParameter(String, TypeCode, String)
Initializes a new instance of the RouteParameter class by using the specified name and type for the parameter, and by using the specified key for the route data.
public:
RouteParameter(System::String ^ name, TypeCode type, System::String ^ routeKey);
public RouteParameter (string name, TypeCode type, string routeKey);
new System.Web.UI.WebControls.RouteParameter : string * TypeCode * string -> System.Web.UI.WebControls.RouteParameter
Public Sub New (name As String, type As TypeCode, routeKey As String)
Parameters
- name
- String
The name of the parameter instance.
- type
- TypeCode
The type that the parameter represents.
- routeKey
- String
The name of the route segment that contains the value for the parameter.