UserInfo Class |
Namespace: MicaSystems.Utils
public class UserInfo
The UserInfo type exposes the following members.
Name | Description | |
---|---|---|
DisplayName |
Gets or sets the display name of the user.
UserPrincipal.Name
| |
Gets or sets the email of the user. Not initialized if the user if local.
UserPrincipal.EmailAddress
| ||
Enabled |
Gets or sets a value indicating whether the user is enabled or disabled.
| |
Login |
Gets or sets the login of the user. Contains domain.
| |
PrincipalGuid |
Gets or sets the GUID of the user.
UserPrincipal.Guid.GetValueOrDefault()
| |
Sid |
Gets or sets the SecurityIdentifier of the user.
UserPrincipal.Sid
|
Name | Description | |
---|---|---|
CreateLocalUser |
Initializes a new instance of UserInfo using a local UserPrincipal.
| |
CreateUser |
Initializes a new instance of UserInfo using a UserPrincipal.
| |
CreateUserFromIdentity |
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]. | |
GetUserFromLogin |
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]. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AsT |
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.) | |
EqualsAll |
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.) | |
EqualsAny |
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.) | |
GetString |
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.) | |
IsGenericList | Overloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.) | |
IsGenericList(Type) | Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.) | |
Serialize | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
Serialize(String) | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
SerializeJson | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
SerializeJson(ListType) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
SerializeJson(DataContractJsonSerializerSettings) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |