Прочитај на енглеском Уреди

Делите путем


RouteParameter Constructors

Definition

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.

C#
public RouteParameter();

Remarks

You use this constructor method to initialize a RouteParameter object and set default values. The properties are initialized to the following values:

See also

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

RouteParameter(RouteParameter)

Initializes a new instance of the RouteParameter class by using the values of the specified instance.

C#
protected RouteParameter(System.Web.UI.WebControls.RouteParameter original);

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

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public RouteParameter(string name, string routeKey);

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

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public RouteParameter(string name, System.Data.DbType dbType, string routeKey);

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

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public RouteParameter(string name, TypeCode type, string routeKey);

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.

See also

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1