Table of Contents

Class SqlPermissionCollection

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

Represents a collection of SQL permissions.

public class SqlPermissionCollection : Collection<SqlPermission>, IList<SqlPermission>, ICollection<SqlPermission>, IList, ICollection, IReadOnlyList<SqlPermission>, IReadOnlyCollection<SqlPermission>, IEnumerable<SqlPermission>, IEnumerable
Inheritance
SqlPermissionCollection
Implements
Inherited Members

Constructors

SqlPermissionCollection()

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

public SqlPermissionCollection()

Methods

FindByGrantee(string)

Returns a CENTREL.XIA.Configuration.Types.SqlPermissionCollection containing the permissions with the specified grantee.

public SqlPermissionCollection FindByGrantee(string grantee)

Parameters

grantee string

The grantee of the permissions to locate.

Returns

SqlPermissionCollection

A CENTREL.XIA.Configuration.Types.SqlPermissionCollection containing the permissions with the specified grantee.

FindByPermissionName(string)

Returns a CENTREL.XIA.Configuration.Types.SqlPermissionCollection containing the permissions with the specified permission name.

public SqlPermissionCollection FindByPermissionName(string permissionName)

Parameters

permissionName string

The permission name of the permission to locate.

Returns

SqlPermissionCollection

A CENTREL.XIA.Configuration.Types.SqlPermissionCollection containing the permissions with the specified permission name.

FindGrantedByPermissionName(string)

Returns a CENTREL.XIA.Configuration.Types.SqlPermissionCollection containing the granted permissions with the specified permission name.

public SqlPermissionCollection FindGrantedByPermissionName(string permissionName)

Parameters

permissionName string

The permission name of the permission to locate.

Returns

SqlPermissionCollection

A CENTREL.XIA.Configuration.Types.SqlPermissionCollection containing the granted permissions with the specified permission name.

IsPermissionGranted(string, string)

Returns a System.Boolean value that indicates whether a permission with the specified permission name is granted to the specified grantee.

public bool IsPermissionGranted(string grantee, string permissionName)

Parameters

grantee string

The grantee of the permission to locate.

permissionName string

The permission name of the permission to locate.

Returns

bool

A System.Boolean value that indicates whether a permission with the specified permission name is granted to the specified grantee.

Sort()

Sorts the values in the collection.

public void Sort()

ToGranteeNames()

Returns a CENTREL.Support.SerializableStringCollection containing the unique grantee names.

public SerializableStringCollection ToGranteeNames()

Returns

SerializableStringCollection

A CENTREL.Support.SerializableStringCollection containing the unique grantee names.