Muokkaa

Jaa


ProfileParameter Constructors

Definition

Initializes a new instance of the ProfileParameter class.

Overloads

ProfileParameter()

Initializes a new instance of the ProfileParameter class.

ProfileParameter(ProfileParameter)

Initializes a new instance of the ProfileParameter class with the values of the instance specified by the original parameter.

ProfileParameter(String, String)

Initializes a new named instance of the ProfileParameter class, using the specified property name to identify which ASP.NET Profile property to bind to.

ProfileParameter(String, DbType, String)

Initializes a new instance of the ProfileParameter class, using the specified property name to identify which ASP.NET Profile property to bind to.

ProfileParameter(String, TypeCode, String)

Initializes a new named and strongly typed instance of the ProfileParameter class, using the specified property name to identify which ASP.NET Profile property to bind to.

ProfileParameter()

Initializes a new instance of the ProfileParameter class.

public:
 ProfileParameter();
public ProfileParameter ();
Public Sub New ()

Remarks

A ProfileParameter object created with the ProfileParameter constructor is initialized with default values for all its properties. The PropertyName properties are initialized to String.Empty. Additionally, the Name property is initialized to String.Empty, the Type property is initialized to TypeCode.Object, the Direction property is initialized to Input, and the DefaultValue property is initialized to null (Nothing in Visual Basic).

Applies to

ProfileParameter(ProfileParameter)

Initializes a new instance of the ProfileParameter class with the values of the instance specified by the original parameter.

protected:
 ProfileParameter(System::Web::UI::WebControls::ProfileParameter ^ original);
protected ProfileParameter (System.Web.UI.WebControls.ProfileParameter original);
new System.Web.UI.WebControls.ProfileParameter : System.Web.UI.WebControls.ProfileParameter -> System.Web.UI.WebControls.ProfileParameter
Protected Sub New (original As ProfileParameter)

Parameters

original
ProfileParameter

A ProfileParameter instance from which the current instance is initialized.

Remarks

The ProfileParameter constructor is a protected copy constructor used to clone a ProfileParameter instance. The values of the ProfileParameter, including PropertyName, Name, and Type are all transferred to the new instance.

See also

Applies to

ProfileParameter(String, String)

Initializes a new named instance of the ProfileParameter class, using the specified property name to identify which ASP.NET Profile property to bind to.

public:
 ProfileParameter(System::String ^ name, System::String ^ propertyName);
public ProfileParameter (string name, string propertyName);
new System.Web.UI.WebControls.ProfileParameter : string * string -> System.Web.UI.WebControls.ProfileParameter
Public Sub New (name As String, propertyName As String)

Parameters

name
String

The name of the parameter.

propertyName
String

The name of the ASP.NET Profile property that the parameter object is bound to. The default is Empty.

Remarks

A ProfileParameter object created with the ProfileParameter constructor is initialized with the specified parameter name and PropertyName, which identifies the ASP.NET Profile property that the parameter binds to. Other properties, including Type, Direction, and ConvertEmptyStringToNull are initialized with default values.

See also

Applies to

ProfileParameter(String, DbType, String)

Initializes a new instance of the ProfileParameter class, using the specified property name to identify which ASP.NET Profile property to bind to.

public:
 ProfileParameter(System::String ^ name, System::Data::DbType dbType, System::String ^ propertyName);
public ProfileParameter (string name, System.Data.DbType dbType, string propertyName);
new System.Web.UI.WebControls.ProfileParameter : string * System.Data.DbType * string -> System.Web.UI.WebControls.ProfileParameter
Public Sub New (name As String, dbType As DbType, propertyName As String)

Parameters

name
String

The name of the parameter.

dbType
DbType

The database type that the parameter represents.

propertyName
String

The name of the ASP.NET Profile property that the parameter object is bound to.

Applies to

ProfileParameter(String, TypeCode, String)

Initializes a new named and strongly typed instance of the ProfileParameter class, using the specified property name to identify which ASP.NET Profile property to bind to.

public:
 ProfileParameter(System::String ^ name, TypeCode type, System::String ^ propertyName);
public ProfileParameter (string name, TypeCode type, string propertyName);
new System.Web.UI.WebControls.ProfileParameter : string * TypeCode * string -> System.Web.UI.WebControls.ProfileParameter
Public Sub New (name As String, type As TypeCode, propertyName As String)

Parameters

name
String

The name of the parameter.

type
TypeCode

The type that the parameter represents. The default is Object.

propertyName
String

The name of the ASP.NET Profile property that the parameter object is bound to. The default is Empty.

Remarks

A ProfileParameter object created with the ProfileParameter constructor is initialized with the specified parameter name, Type, and PropertyName. Only the Direction and ConvertEmptyStringToNull properties are initialized with default values.

See also

Applies to