ProfileUsageAttribute Class
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Describes how a property is backed in an ASP.NET profile.
System.Attribute
System.ServiceModel.DomainServices.Server.ApplicationServices.ProfileUsageAttribute
Namespace: System.ServiceModel.DomainServices.Server.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
The ProfileUsageAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
|
ProfileUsageAttribute | Initializes a new instance of the ProfileUsageAttribute class. |
| Name | Description | |
|---|---|---|
|
Alias | Gets or sets the name of the member backing the property in an ASP.NET profile. |
|
IsExcluded | Gets or sets a value indicating whether the property is backed by a profile member. |
|
TypeId | (Inherited from Attribute.) |
| Name | Description | |
|---|---|---|
|
Equals | (Inherited from Attribute.) |
|
Finalize | (Inherited from Object.) |
|
GetHashCode | (Inherited from Attribute.) |
|
GetType | (Inherited from Object.) |
|
IsDefaultAttribute | (Inherited from Attribute.) |
|
Match | (Inherited from Attribute.) |
|
MemberwiseClone | (Inherited from Object.) |
|
ToString | (Inherited from Object.) |
This attribute is used by the AuthenticationBase<T> to determine how it should read from or write to the ASP.NET profile that backs the data. If a property with the same name exists in the profile, you do not need to use this attribute. If a property is not in the profile, you should set the IsExcluded property to true. If a property has a different name than the profile value that backs it, you should set the Alias property to the name of the backing value in the profile. The attribute can be used with user entities extending UserBase.