Class SqlLoginCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of SQL logins.
public class SqlLoginCollection : Collection<SqlLogin>, IList<SqlLogin>, ICollection<SqlLogin>, IList, ICollection, IReadOnlyList<SqlLogin>, IReadOnlyCollection<SqlLogin>, IEnumerable<SqlLogin>, IEnumerable
- Inheritance
-
SqlLoginCollection
- Implements
- Inherited Members
Constructors
SqlLoginCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.SqlLoginCollection class.
public SqlLoginCollection()
Methods
ExistsById(int)
Returns a System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.SqlLogin with the specified ID exists within the collection.
public bool ExistsById(int id)
Parameters
idintThe ID of the CENTREL.XIA.Configuration.Types.SqlLogin to locate.
Returns
- bool
A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.SqlLogin with the specified ID exists within the collection.
ExistsByName(string)
Returns a System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.SqlLogin with the specified name exists within the collection.
public bool ExistsByName(string name)
Parameters
namestringThe name of the CENTREL.XIA.Configuration.Types.SqlLogin to locate.
Returns
- bool
A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.SqlLogin with the specified name exists within the collection.
ExistsBySid(string)
Returns a System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.SqlLogin with the specified security identifier exists within the collection.
public bool ExistsBySid(string sid)
Parameters
sidstringThe security identifier of the CENTREL.XIA.Configuration.Types.SqlLogin to locate.
Returns
- bool
A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.SqlLogin with the specified security identifier exists within the collection.
ExistsSaLogin()
Gets whether the built-in SA login account exists within the collection.
public bool ExistsSaLogin()
Returns
- bool
A System.Boolean value that indicates whether the built-in SA login account exists within the collection.
FindById(int)
Returns the CENTREL.XIA.Configuration.Types.SqlLogin with the specified ID, or null if no CENTREL.XIA.Configuration.Types.SqlLogin with that ID is found.
public SqlLogin FindById(int id)
Parameters
idintThe ID of the CENTREL.XIA.Configuration.Types.SqlLogin to locate.
Returns
- SqlLogin
The CENTREL.XIA.Configuration.Types.SqlLogin with the specified ID.
FindByName(string)
Returns the CENTREL.XIA.Configuration.Types.SqlLogin with the specified name, or null if no CENTREL.XIA.Configuration.Types.SqlLogin with that name is found.
public SqlLogin FindByName(string name)
Parameters
namestringThe name of the CENTREL.XIA.Configuration.Types.SqlLogin to locate.
Returns
- SqlLogin
The CENTREL.XIA.Configuration.Types.SqlLogin with the specified name.
FindBySid(string)
Returns the CENTREL.XIA.Configuration.Types.SqlLogin with the specified security identifier, or null if no CENTREL.XIA.Configuration.Types.SqlLogin with that security identifier is found.
public SqlLogin FindBySid(string sid)
Parameters
sidstringThe security identifier of the CENTREL.XIA.Configuration.Types.SqlLogin to locate.
Returns
- SqlLogin
The CENTREL.XIA.Configuration.Types.SqlLogin with the specified security identifier.
FindSaLogin()
Finds the built-in SA login account.
public SqlLogin FindSaLogin()
Returns
- SqlLogin
The built-in SA login account.
Sort()
Sorts the values in the collection.
public void Sort()