ProfileParameter Class
Assembly: System.Web (in system.web.dll)
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 a null reference (Nothing in Visual Basic). Set the DefaultValue property to avoid these situations where appropriate. |
- AspNetHostingPermission for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
Note: