UtilUserAccount Class

Contains user-account related utilities.

Definition

Namespace: DevCase.Core.Windows.Users
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class UtilUserAccount
Inheritance
Object    UtilUserAccount

Properties

CurrentUser Gets an UserPrincipal object that represents the current user.
CurrentUserIsAdmin Gets a value that indicates whether the current is an Administrator.

Methods

Add(UserPrincipal, WellKnownSidType) Adds a new user account in the current machine context.
Add(String, String, String, String, Boolean, Boolean, WellKnownSidType) Adds a new user account in the current machine context.
Create Creates a new user account in the current machine context. This function does NOT adds a new user in the current machine.
Delete Deletes an user account in the current machine context.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
FindProfilePath(SecurityIdentifier) Finds the profile directory path of the specified username account in the current machine context.
FindProfilePath(String) Finds the profile directory path of the specified username account in the current machine context.
FindSid Finds the security identifier (SID) of the specified username account in the current machine context.
FindUser(SecurityIdentifier) Finds an user account that matches the specified security identifier (SID) in the current machine context.
FindUser(String) Finds an user account that matches the specified name in the current machine context.
FindUsername Finds the username of the specified security identifier (SID) in the current machine context.
GetAllUsers Find and returns all the user accounts of the current machine context.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
IsAdmin Determines whether an user-account of the current machine context is an Administrator.
IsMemberOfGroup(String, WellKnownSidType) Determines whether an user-account of the current machine context is a member of the specified group.
IsMemberOfGroup(String, String) Determines whether an user-account of the current machine context is a member of the specified group.
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also