Search Results for

    Show / Hide Table of Contents
    View Source

    Class UserSave

    Represents the data used to persist a user

    Inheritance
    System.Object
    EntityBasic
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "user", Namespace = "")]
    public class UserSave : EntityBasic, IValidatableObject
    Remarks

    This will be different from the model used to display a user and we don't want to "Overpost" data back to the server, and there will most likely be different bits of data required for updating passwords which will be different from the data used to display vs save

    Properties

    View Source

    ChangePassword

    Declaration
    [DataMember(Name = "changePassword", IsRequired = true)]
    public ChangingPasswordModel ChangePassword { get; set; }
    Property Value
    Type Description
    ChangingPasswordModel
    View Source

    Culture

    Declaration
    [DataMember(Name = "culture", IsRequired = true)]
    [Required]
    public string Culture { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Email

    Declaration
    [DataMember(Name = "email", IsRequired = true)]
    [Required]
    [EmailAddress]
    public string Email { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Id

    Declaration
    [DataMember(Name = "id", IsRequired = true)]
    [Required]
    public int Id { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    StartContentIds

    Declaration
    [DataMember(Name = "startContentIds")]
    public int[] StartContentIds { get; set; }
    Property Value
    Type Description
    System.Int32[]
    View Source

    StartMediaIds

    Declaration
    [DataMember(Name = "startMediaIds")]
    public int[] StartMediaIds { get; set; }
    Property Value
    Type Description
    System.Int32[]
    View Source

    UserGroups

    Declaration
    [DataMember(Name = "userGroups")]
    [Required]
    public IEnumerable<string> UserGroups { get; set; }
    Property Value
    Type Description
    IEnumerable<System.String>
    View Source

    Username

    Declaration
    [DataMember(Name = "username", IsRequired = true)]
    [Required]
    public string Username { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    Validate(ValidationContext)

    Declaration
    public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    System.ComponentModel.DataAnnotations.ValidationContext validationContext
    Returns
    Type Description
    IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult>
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • ChangePassword
      • Culture
      • Email
      • Id
      • StartContentIds
      • StartMediaIds
      • UserGroups
      • Username
    • Methods
      • Validate(ValidationContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX