Table of Contents

Class Profile

Namespace
Oqtane.Models
Assembly
Oqtane.Shared.dll

A single Profile Property information of a User.
So a user will have many of these to fully describe his Profile.

public class Profile : ModelBase, IAuditable
Inheritance
object
Profile
Implements
Inherited Members

Properties

Autocomplete

Autocomplete setting for the property. If set, enable autocomplete for the corresponding input field.

public string Autocomplete { get; set; }

Property Value

string

Category

Category of this Profile-Property for grouping etc.

public string Category { get; set; }

Property Value

string

DefaultValue

Initial/default value of this Property.

public string DefaultValue { get; set; }

Property Value

string

Description

Description of the Property for the UI.

public string Description { get; set; }

Property Value

string

IsPrivate

Some Profile Properties are private, meaning other users won't see them.

public bool IsPrivate { get; set; }

Property Value

bool

IsRequired

Some Profile Properties are required - marked with this field.

public bool IsRequired { get; set; }

Property Value

bool

MaxLength

Limits the input length of the property.

public int MaxLength { get; set; }

Property Value

int

Name

Name of the Profile-Property. NOT the User-Name.

public string Name { get; set; }

Property Value

string

Options

This gives possible values for dropdown input fields.

public string Options { get; set; }

Property Value

string

ProfileId

Internal ID

public int ProfileId { get; set; }

Property Value

int

Rows

Optional number of rows (textarea)

public int Rows { get; set; }

Property Value

int

SiteId

Reference to the Site. It's nullable, probably because certain users like Super-Users don't specifically belong to any site.

public int? SiteId { get; set; }

Property Value

int?

Title

Title (label) of the Profile Property.

public string Title { get; set; }

Property Value

string

Validation

Optional RegExp validation expression

public string Validation { get; set; }

Property Value

string

ViewOrder

Order of the Property in the list of Profile-Properties.

public int ViewOrder { get; set; }

Property Value

int