Click or drag to resize

UserInfo Class

Generic object containing the information of a user.
Inheritance Hierarchy
SystemObject
  MicaSystems.UtilsUserInfo

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public class UserInfo

The UserInfo type exposes the following members.

Constructors
  NameDescription
Public methodUserInfo
Top
Properties
  NameDescription
Public propertyDisplayName
Gets or sets the display name of the user. UserPrincipal.Name
Public propertyEmail
Gets or sets the email of the user. Not initialized if the user if local. UserPrincipal.EmailAddress
Public propertyEnabled
Gets or sets a value indicating whether the user is enabled or disabled.
Public propertyLogin
Gets or sets the login of the user. Contains domain.
Public propertyPrincipalGuid
Gets or sets the GUID of the user. UserPrincipal.Guid.GetValueOrDefault()
Public propertySid
Gets or sets the SecurityIdentifier of the user. UserPrincipal.Sid
Top
Methods
  NameDescription
Public methodStatic memberCreateLocalUser
Initializes a new instance of UserInfo using a local UserPrincipal.
Public methodStatic memberCreateUser
Initializes a new instance of UserInfo using a UserPrincipal.
Public methodStatic memberCreateUserFromIdentity
Initializes a new instance of UserInfo using an identity.

The UserInfo will contain : [Login], [SID if WindowsIdentity, or found in AD] and [PrincipalGuid, DisplayName, Email if found in AD].

Public methodStatic memberGetUserFromLogin
Initializes a new instance of UserInfo using a login.

The UserInfo will contain : [Login], [SID if WindowsIdentity, or found in AD] and [PrincipalGuid, DisplayName, Email if found in AD].

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also