MembershipUser.Comment Property (System.Web.Security)

Switch View :
ScriptFree
.NET Framework Class Library
MembershipUser.Comment Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets application-specific information for the membership user.

Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

Syntax

Visual Basic (Declaration)
Public Overridable Property Comment As String
Visual Basic (Usage)
Dim instance As MembershipUser
Dim value As String

value = instance.Comment

instance.Comment = value
C#
public virtual string Comment { get; set; }
C++
public:
virtual property String^ Comment {
	String^ get ();
	void set (String^ value);
}
J#
/** @property */
public String get_Comment ()

/** @property */
public void set_Comment (String value)

JScript
public function get Comment () : String

public function set Comment (value : String)

Property Value

Application-specific information for the membership user.
Remarks

The Comment property can be used to store custom information for a membership user that is specific to an application. The amount of information that can be stored in the Comment property for a MembershipUser is defined by the membership provider referenced by the ProviderName property. If your application requires more space to store user information than is allowed by the membership provider, you can implement a custom membership provider, or use the user System.Web.Profile.

Platforms

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Framework

Supported in: 2.0
See Also