Table of Contents

Class UnixLocalUsers

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents the local users found on a Unix system.

public class UnixLocalUsers : BaseTypeSection
Inheritance
UnixLocalUsers

Constructors

UnixLocalUsers()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.UnixLocalUsers class.

public UnixLocalUsers()

Properties

Items

Gets or sets the items within the collection.

public UnixLocalUserCollection Items { get; set; }

Property Value

UnixLocalUserCollection

Methods

FindByIdentifier(int)

Returns the Unix local user with the specified unique identifier.

public UnixLocalUser FindByIdentifier(int userId)

Parameters

userId int

The unique identifier of the user - for example "500".

Returns

UnixLocalUser

The Unix local user with the specified identifier, or null if no user with that identifier is found.

FindByUsername(string)

Returns the Unix local user with the specified username.

public UnixLocalUser FindByUsername(string username)

Parameters

username string

The username of the user - for example "root".

Returns

UnixLocalUser

The Unix local user with the specified username, or null if no user with that name is found.

FromXml(string)

Returns the CENTREL.XIA.Configuration.Types.UnixLocalUsers from the specified XML data.

public static UnixLocalUsers FromXml(string xml)

Parameters

xml string

The XML representation of the Unix local users.

Returns

UnixLocalUsers

A CENTREL.XIA.Configuration.Types.UnixLocalUsers from the specified XML.

ToString()

Returns the local users as a human readable string - for example "10 Local Users".

public override string ToString()

Returns

string

The local users as a human readable string.