DomainUser Class

Represents a domain or local user.

Definition

Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.1.0+446b05628b4ec6933ca1b84b1f778ac43fb60ce9
C#
public class DomainUser : IEquatable<DomainUser>
Inheritance
Object    DomainUser
Implements
IEquatableDomainUser

Remarks

This class typically represents a local user account if the Domain property is .

In some cases, not specifying a domain name may represent a member of some default domain instead of a local account; if this is the case, it will be mentioned in the documentation for the property or method that uses this class.

Constructors

DomainUser(String) Initializes a new instance of the DomainUser class for a local user account.
DomainUser(String, String) Initializes a new instance of the DomainUser class.

Properties

Domain Gets the domain for the user account.
UserName Gets the account user name.

Methods

FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Parse Parses the domain and user name from a string in the form 'domain\user' or just 'user'.
ToString Gets a string representation of the current DomainUser.
(Overrides ObjectToString)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also