Szerkesztés

Megosztás a következőn keresztül:


DefaultProfile Class

Definition

Represents a user-profile instance when no profile properties are defined.

public ref class DefaultProfile : System::Web::Profile::ProfileBase
public class DefaultProfile : System.Web.Profile.ProfileBase
type DefaultProfile = class
    inherit ProfileBase
Public Class DefaultProfile
Inherits ProfileBase
Inheritance

Remarks

The DefaultProfile class is used by ASP.NET to return a default instance of a user profile when the profile feature is enabled but no properties are defined.

Constructors

DefaultProfile()

Creates a new instance of the DefaultProfile class.

Properties

Context

Gets the associated settings context.

(Inherited from SettingsBase)
IsAnonymous

Gets a value indicating whether the user profile is for an anonymous user.

(Inherited from ProfileBase)
IsDirty

Gets a value indicating whether any of the profile properties have been modified.

(Inherited from ProfileBase)
IsSynchronized

Gets a value indicating whether access to the object is synchronized (thread safe).

(Inherited from SettingsBase)
Item[String]

Gets or sets a profile property value indexed by the property name.

(Inherited from ProfileBase)
LastActivityDate

Gets the most recent date and time that the profile was read or modified.

(Inherited from ProfileBase)
LastUpdatedDate

Gets the most recent date and time that the profile was modified.

(Inherited from ProfileBase)
Properties

Gets the collection of settings properties.

(Inherited from SettingsBase)
PropertyValues

Gets a collection of settings property values.

(Inherited from SettingsBase)
Providers

Gets a collection of settings providers.

(Inherited from SettingsBase)
UserName

Gets the user name for the profile.

(Inherited from ProfileBase)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetProfileGroup(String)

Gets a group of properties identified by a group name.

(Inherited from ProfileBase)
GetPropertyValue(String)

Gets the value of a profile property.

(Inherited from ProfileBase)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize(SettingsContext, SettingsPropertyCollection, SettingsProviderCollection)

Initializes internal properties used by SettingsBase object.

(Inherited from SettingsBase)
Initialize(String, Boolean)

Initializes the profile property values and information for the current user.

(Inherited from ProfileBase)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Save()

Updates the profile data source with changed profile property values.

(Inherited from ProfileBase)
SetPropertyValue(String, Object)

Sets the value of a profile property.

(Inherited from ProfileBase)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also