Table of Contents

Class UserProfile

Namespace
Arc4u.Security.Principal
Assembly
Arc4u.dll

The class contains the main information on a User. The informations are retrieve from the AD but can be constructed from any other sources. The class is binay and xml serialisable.

public sealed class UserProfile : IXmlSerializable
Inheritance
UserProfile
Implements
Inherited Members

Constructors

UserProfile()

Initializes a new, empty instance of the UserProfile class. It is used by the serializers.

public UserProfile()

UserProfile(string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, CultureInfo, string, string)

Initializes a new instance of the UserProfile class.

public UserProfile(string displayName, string email, string department, string company, string givenName, string surName, string sid, string state, string mobile, string telephone, string internalPhone, string fax, string principalName, string postalCode, string street, string room, string initials, string samAccountName, string domain, CultureInfo culture, string commonName, string description)

Parameters

displayName string

The display name.

email string

The email.

department string

The department.

company string

The company.

givenName string

Name of the given.

surName string

Name of the sur.

sid string

The sid.

state string

The state.

mobile string

The mobile.

telephone string

The telephone.

internalPhone string

The internal phone.

fax string

The fax.

principalName string

Name of the principal.

postalCode string

The postal code.

street string

Th street.

room string

The room.

initials string

The initials.

samAccountName string

Name of the sam account.

domain string

The Active Directory name.

culture CultureInfo

The culture.

commonName string

Name of the common.

description string

The description.

Properties

CommonName

Gets the name of the common.

[JsonInclude]
public string CommonName { get; }

Property Value

string

The name of the common.

Company

Gets the company.

[JsonInclude]
public string Company { get; }

Property Value

string

The company.

Culture

Gets the culture of the user.

[JsonIgnore]
public CultureInfo Culture { get; }

Property Value

CultureInfo

The culture.

CurrentCulture

Gets or sets the culture currently used by the user (initially the same as Culture).

[JsonIgnore]
public CultureInfo CurrentCulture { get; set; }

Property Value

CultureInfo

The current culture.

Department

Gets the department.

[JsonInclude]
public string Department { get; }

Property Value

string

The department.

Description

Gets the description.

[JsonInclude]
public string Description { get; }

Property Value

string

The description.

DisplayName

Gets the display name.

[JsonInclude]
public string DisplayName { get; }

Property Value

string

The display name.

Domain

Get the domain.

[JsonInclude]
public string Domain { get; }

Property Value

string

Email

Gets the email.

[JsonInclude]
public string Email { get; }

Property Value

string

The email.

Empty

Create an empty UserProfile object which is serializable!

public static UserProfile Empty { get; }

Property Value

UserProfile

A valide empty UserpProfile

Fax

Gets the fax.

[JsonInclude]
public string Fax { get; }

Property Value

string

The fax.

GivenName

Gets the name of the given.

[JsonInclude]
public string GivenName { get; }

Property Value

string

The name of the given.

Initials

Gets the initials.

[JsonInclude]
public string Initials { get; }

Property Value

string

The initials.

InternalPhone

Gets the internal phone.

[JsonInclude]
public string InternalPhone { get; }

Property Value

string

The internal phone.

Mobile

Gets the mobile.

[JsonInclude]
public string Mobile { get; }

Property Value

string

The mobile.

PostalCode

Gets the postal code.

[JsonInclude]
public string PostalCode { get; }

Property Value

string

The postal code.

PrincipalName

Gets the name of the principal.

[JsonInclude]
public string PrincipalName { get; }

Property Value

string

The name of the principal.

Room

Gets the room.

[JsonInclude]
public string Room { get; }

Property Value

string

The room.

SamAccountName

Gets the name of the sam account.

[JsonInclude]
public string SamAccountName { get; }

Property Value

string

The name of the sam account.

Sid

Gets the sid.

[JsonInclude]
public string Sid { get; }

Property Value

string

The sid.

State

Gets the state.

[JsonInclude]
public string State { get; }

Property Value

string

The state.

Street

Get the Street defined in the address.

[JsonInclude]
public string Street { get; }

Property Value

string

SurName

Gets the surname.

[JsonInclude]
public string SurName { get; }

Property Value

string

The surname.

Telephone

Gets the telephone.

[JsonInclude]
public string Telephone { get; }

Property Value

string

The telephone.