Class UserProfile
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
displayNamestringThe display name.
emailstringThe email.
departmentstringThe department.
companystringThe company.
givenNamestringName of the given.
surNamestringName of the sur.
sidstringThe sid.
statestringThe state.
mobilestringThe mobile.
telephonestringThe telephone.
internalPhonestringThe internal phone.
faxstringThe fax.
principalNamestringName of the principal.
postalCodestringThe postal code.
streetstringTh street.
roomstringThe room.
initialsstringThe initials.
samAccountNamestringName of the sam account.
domainstringThe Active Directory name.
cultureCultureInfoThe culture.
commonNamestringName of the common.
descriptionstringThe 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
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
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.