Export (0) Print
Expand All

DefaultProfile Class

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

Namespace:  System.Web.Profile
Assembly:  System.Web (in System.Web.dll)

'Declaration
Public Class DefaultProfile _
	Inherits ProfileBase

The DefaultProfile type exposes the following members.

  NameDescription
Public methodDefaultProfileCreates a new instance of the DefaultProfile class.
Top

  NameDescription
Public propertyContextGets the associated settings context. (Inherited from SettingsBase.)
Public propertyIsAnonymousGets a value indicating whether the user profile is for an anonymous user. (Inherited from ProfileBase.)
Public propertyIsDirtyGets a value indicating whether any of the profile properties have been modified. (Inherited from ProfileBase.)
Public propertyIsSynchronizedGets a value indicating whether access to the object is synchronized (thread safe). (Inherited from SettingsBase.)
Public propertyItemGets or sets a profile property value indexed by the property name. (Inherited from ProfileBase.)
Public propertyLastActivityDateGets the most recent date and time that the profile was read or modified. (Inherited from ProfileBase.)
Public propertyLastUpdatedDateGets the most recent date and time that the profile was modified. (Inherited from ProfileBase.)
Public propertyPropertiesGets the collection of settings properties. (Inherited from SettingsBase.)
Public propertyPropertyValuesGets a collection of settings property values. (Inherited from SettingsBase.)
Public propertyProvidersGets a collection of settings providers. (Inherited from SettingsBase.)
Public propertyUserNameGets the user name for the profile. (Inherited from ProfileBase.)
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetProfileGroupGets a group of properties identified by a group name. (Inherited from ProfileBase.)
Public methodGetPropertyValueGets the value of a profile property. (Inherited from ProfileBase.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitialize(String, Boolean)Initializes the profile property values and information for the current user. (Inherited from ProfileBase.)
Public methodInitialize(SettingsContext, SettingsPropertyCollection, SettingsProviderCollection)Initializes internal properties used by SettingsBase object. (Inherited from SettingsBase.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSaveUpdates the profile data source with changed profile property values. (Inherited from ProfileBase.)
Public methodSetPropertyValueSets the value of a profile property. (Inherited from ProfileBase.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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

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

Community Additions

ADD
Show:
© 2014 Microsoft