System.Web.Profile.ProfileBase.Create Method

Used by ASP.NET to create an instance of a profile for the specified user name. Takes a parameter indicating whether the user is authenticated or anonymous.

Syntax

public static ProfileBase Create (string username, bool isAuthenticated)

Parameters

username
The name of the user to create a profile for.
isAuthenticated
true to indicate the user is authenticated; false to indicate the user is anonymous.

Returns

A System.Web.Profile.ProfileBase object that represents the profile for the specified user.

Remarks

The ProfileBase.Create(string, bool) method creates and initializes a new profile instance and is useful for applications that use a custom profile object or manage user profiles in a non-ASP.NET environment.

This overload of the ProfileBase.Create(string, bool) method can be used to create a profile for an authenticated user or an anonymous user.

Requirements

Namespace: System.Web.Profile
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0