Class UserProfile
Represents a user profile containing basic user information.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.Membership
Assembly: Umbraco.Core.dll
Syntax
public class UserProfile : IProfile
Constructors
View SourceUserProfile(int, string?)
Initializes a new instance of the UserProfile class.
Declaration
public UserProfile(int id, string? name)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The unique identifier for the profile. |
| string | name | The name of the profile. |
Properties
View SourceId
Gets the unique identifier for the profile.
Declaration
public int Id { get; }
Property Value
| Type | Description |
|---|---|
| int |
Name
Gets the name of the profile.
Declaration
public string? Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceEquals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Equals(UserProfile?)
Declaration
public bool Equals(UserProfile? other)
Parameters
| Type | Name | Description |
|---|---|---|
| UserProfile | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Operators
View Sourceoperator ==(UserProfile, UserProfile)
Determines whether two UserProfile instances are equal.
Declaration
public static bool operator ==(UserProfile left, UserProfile right)
Parameters
| Type | Name | Description |
|---|---|---|
| UserProfile | left | The first instance to compare. |
| UserProfile | right | The second instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
operator !=(UserProfile, UserProfile)
Determines whether two UserProfile instances are not equal.
Declaration
public static bool operator !=(UserProfile left, UserProfile right)
Parameters
| Type | Name | Description |
|---|---|---|
| UserProfile | left | The first instance to compare. |
| UserProfile | right | The second instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|