.NET Framework Class Library ProfileParameter Class Binds the value of an ASP.NET Profile property to a parameter object.

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

Syntax
Public Class ProfileParameter _
Inherits Parameter
public class ProfileParameter : Parameter
public ref class ProfileParameter : public Parameter
type ProfileParameter =
class
inherit Parameter
end
The ProfileParameter type exposes the following members.

Constructors

Methods

Explicit Interface Implementations

Remarks
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 nullNothingnullptra null reference (Nothing in Visual Basic). Set the DefaultValue property to avoid these situations where appropriate. |

Version Information
.NET FrameworkSupported in: 4, 3.5, 3.0, 2.0

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), 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.

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

See Also
|
Bibliothèque de classes .NET Framework ProfileParameter, classe Lie la valeur d'une propriété de profil ASP.NET à un objet Parameter.

Hiérarchie d'héritage
Espace de noms :
System.Web.UI.WebControls
Assembly :
System.Web (dans System.Web.dll)

Syntaxe
Public Class ProfileParameter _
Inherits Parameter
public class ProfileParameter : Parameter
public ref class ProfileParameter : public Parameter
type ProfileParameter =
class
inherit Parameter
end
Le type ProfileParameter expose les membres suivants.

Méthodes

Implémentations d'interface explicite

Notes
Vous pouvez utiliser la classe ProfileParameter pour lier la valeur d'un paramètre de profil ASP.NET à un paramètre utilisé dans une requête SQL paramétrée, une méthode d'objet métier ou une expression de filtrage. La classe ProfileParameter fournit la propriété PropertyName en plus de celles héritées de la classe Parameter. La propriété PropertyName identifie la propriété de profil ASP.NET dans laquelle ProfileParameter récupère une valeur. Remarque |
|---|
Contrôles permettant de lier aux données un paramètre susceptible de lever une exception si un objet ProfileParameter est spécifié mais qu'aucune propriété de profil correspondante n'est définie. De la même façon, ils peuvent n'afficher aucune donnée si la valeur de la propriété de profil est nullNothingnullptrune référence null (Nothing en Visual Basic). Définissez la propriété DefaultValue afin d'éviter ce type de situation lorsque cela est approprié. |

Informations de version
.NET FrameworkPris en charge dans : 4, 3.5, 3.0, 2.0

Plateformes
Windows 7, Windows Vista SP1 ou ultérieur, Windows XP SP3, Windows XP SP2 Édition x64, Windows Server 2008 (installation minimale non prise en charge), Windows Server 2008 R2 (installation minimale prise en charge avec SP1 ou version ultérieure), Windows Server 2003 SP2
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

Sécurité des threads
Tous les membres static ( Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Voir aussi
RéférenceAutres ressources
|