This documentation is archived and is not being maintained.

ProfileParameter Class

Updated: July 2008

Binds the value of an ASP.NET Profile property to a parameter object.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class ProfileParameter : 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.


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.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0




July 2008

Added new member: . ProfileParameter(String, DbType, String) constructor.

SP1 feature change.