LocalCredential Class

Provides credentials for a local user account.

Definition

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

Remarks

While the DomainCredential class can represent either a domain or local user account, this class can only represent a local user account.

  Security Note

Passwords in answer files are not encrypted. They are plain text at worst, and base64 encoded at best. Do not store answer files with sensitive passwords in public locations.

Constructors

LocalCredential Creates a new instance of the LocalCredential class.

Properties

Group Gets the group to which the user will be added.
Password Gets the password of the account.
UserName Gets the user name of the account.

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 'user,password' or 'group:user,password'.

Fields

DefaultGroup The group that users will be added to if no group is explicitly specified.

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