ProfileParameter Class
Binds the value of an ASP.NET Profile property to a parameter object.
Assembly: System.Web (in System.Web.dll)
The ProfileParameter type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | ConvertEmptyStringToNull | Gets or sets a value indicating whether the value that the Parameter object is bound to should be converted to nullptr if it is String::Empty. (Inherited from Parameter.) |
![]() | DbType | Gets or sets the database type of the parameter. (Inherited from Parameter.) |
![]() | DefaultValue | Specifies a default value for the parameter, should the value that the parameter is bound to be uninitialized when the Evaluate method is called. (Inherited from Parameter.) |
![]() | Direction | Indicates whether the Parameter object is used to bind a value to a control, or the control can be used to change the value. (Inherited from Parameter.) |
![]() | IsTrackingViewState | Gets a value indicating whether the Parameter object is saving changes to its view state. (Inherited from Parameter.) |
![]() | Name | Gets or sets the name of the parameter. (Inherited from Parameter.) |
![]() | PropertyName | Gets or sets the name of the ASP.NET Profile property that the parameter binds to. |
![]() | Size | Gets or sets the size of the parameter. (Inherited from Parameter.) |
![]() | Type | Gets or sets the type of the parameter. (Inherited from Parameter.) |
![]() | ViewState | Gets a dictionary of state information that allows you to save and restore the view state of a Parameter object across multiple requests for the same page. (Inherited from Parameter.) |
| Name | Description | |
|---|---|---|
![]() | Clone | Returns a duplicate of the current ProfileParameter instance. (Overrides Parameter::Clone().) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Evaluate | Updates and returns the value of the ProfileParameter object. (Overrides Parameter::Evaluate(HttpContext, Control).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetDatabaseType | Gets the DbType value that is equivalent to the CLR type of the current Parameter instance. (Inherited from Parameter.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | LoadViewState | Restores the data source view's previously saved view state. (Inherited from Parameter.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnParameterChanged | Calls the OnParametersChanged method of the ParameterCollection collection that contains the Parameter object. (Inherited from Parameter.) |
![]() | SaveViewState | Saves the changes to the Parameter object's view state since the time the page was posted back to the server. (Inherited from Parameter.) |
![]() | SetDirty | Marks the Parameter object so its state will be recorded in view state. (Inherited from Parameter.) |
![]() | ToString | Converts the value of this instance to its equivalent string representation. (Inherited from Parameter.) |
![]() | TrackViewState | Causes the Parameter object to track changes to its view state so they can be stored in the control's ViewState object and persisted across requests for the same page. (Inherited from Parameter.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICloneable::Clone | Returns a duplicate of the current Parameter instance. (Inherited from Parameter.) |
![]() ![]() | IStateManager::IsTrackingViewState | Infrastructure. Gets a value indicating whether the Parameter object is saving changes to its view state. (Inherited from Parameter.) |
![]() ![]() | IStateManager::LoadViewState | Infrastructure. Restores the data source view's previously saved view state. (Inherited from Parameter.) |
![]() ![]() | IStateManager::SaveViewState | Infrastructure. Saves the changes to the Parameter object's view state since the time the page was posted back to the server. (Inherited from Parameter.) |
![]() ![]() | IStateManager::TrackViewState | Infrastructure. Causes the Parameter object to track changes to its view state so they can be stored in the control's ViewState object and persisted across requests for the same page. (Inherited from Parameter.) |
You can use the ProfileParameter class to bind the value of an ASP.NET Profile parameter to a parameter used in a parameterized SQL query, business object method, or filtering expression.
The ProfileParameter class provides the PropertyName property in addition to those inherited from the Parameter class. The PropertyName property identifies the ASP.NET Profile property from which the ProfileParameter retrieves a value.
Note |
|---|
Controls that bind data to the parameter might throw an exception if a ProfileParameter object is specified but no corresponding profile property is set. Similarly, they might display no data if the profile property is set with nullptr. Set the DefaultValue property to avoid these situations where appropriate. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.







Note