ProfileParameter Class
Binds the value of an ASP.NET Profile property to a parameter object.
Assembly: System.Web (in System.Web.dll)
| 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^, 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^, 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^, 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 null if it is String::Empty.(Inherited from Parameter.) |
![]() | DbType | Gets or sets the database type of the parameter.(Inherited from Parameter.) |
![]() | DefaultValue | |
![]() | Direction | |
![]() | IsTrackingViewState | |
![]() | 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 |
| 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(HttpContext^, Control^) | 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() | |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | LoadViewState(Object^) | Restores the data source view's previously saved view state.(Inherited from Parameter.) |
![]() | MemberwiseClone() | |
![]() | OnParameterChanged() | Calls the OnParametersChanged method of the ParameterCollection collection that contains the Parameter object.(Inherited from Parameter.) |
![]() | SaveViewState() | |
![]() | SetDirty() | |
![]() | ToString() | Converts the value of this instance to its equivalent string representation.(Inherited from Parameter.) |
![]() | TrackViewState() |
| Name | Description | |
|---|---|---|
![]() ![]() | ICloneable::Clone() | |
![]() ![]() | IStateManager::LoadViewState(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Restores the data source view's previously saved view state.(Inherited from Parameter.) |
![]() ![]() | IStateManager::SaveViewState() | |
![]() ![]() | IStateManager::TrackViewState() | |
![]() ![]() | IStateManager::IsTrackingViewState |
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 null. Set the DefaultValue property to avoid these situations where appropriate. |
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.







