DatabasePermissionCollection Class
SQL Server 2012
Represents a collection of IdatabasePermission objects.
System.Object
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.OrderedCollectionBase<IDatabasePermission>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.OrderedCollection<IDatabasePermission>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.DatabasePermissionCollection
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.OrderedCollectionBase<IDatabasePermission>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.OrderedCollection<IDatabasePermission>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.DatabasePermissionCollection
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
The DatabasePermissionCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DatabasePermissionCollection(CollationInfo) | Initializes a new instance of the DatabasePermissionCollection class that uses the specified object and the default initial capacity. |
![]() | DatabasePermissionCollection(Int32, CollationInfo) | Initializes a new instance of the DatabasePermissionCollection class that uses the specified capacity and CollationInfo object. |
| Name | Description | |
|---|---|---|
![]() | AsMetadataObjectCollection | Gets an IMetadataCollection<T> object that contains this collection. (Inherited from OrderedCollection<T>.) |
![]() | Count | Gets the number of elements in the collection. (Inherited from OrderedCollectionBase<T>.) |
![]() | Item[Int32] | Gets the element at the specified index. (Inherited from OrderedCollectionBase<T>.) |
![]() | Item[String] | Gets or sets the element that has the specified name. (Inherited from OrderedCollectionBase<T>.) |
| Name | Description | |
|---|---|---|
![]() | Add | Adds an object to the collection using its name as the key. (Inherited from OrderedCollectionBase<T>.) |
![]() | AddRange | Adds the elements of the specified collection to this collection. (Inherited from OrderedCollectionBase<T>.) |
![]() | Clear | Removes all elements from the collection. (Inherited from OrderedCollectionBase<T>.) |
![]() | Clone() | Creates an IMutableMetadataCollection<T> instance that is a copy of this object, except for the elements. (Inherited from OrderedCollectionBase<T>.) |
![]() | Clone(Boolean) | Creates an IMutableMetadataCollection<T> instance that is a copy of this object and, if specified, also copies the elements. (Inherited from OrderedCollectionBase<T>.) |
![]() | Contains(String) | Determines whether the specified element is in the collection. (Inherited from OrderedCollectionBase<T>.) |
![]() | Contains(T) | Determines whether the specified element is in the collection. (Inherited from OrderedCollectionBase<T>.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | FindAll(Predicate<T>) | Finds all elements in the collection that match the conditions that are defined by the specified predicate. (Inherited from OrderedCollectionBase<T>.) |
![]() | FindAll(String) | Finds all elements in the collection that have the specified name. (Inherited from OrderedCollectionBase<T>.) |
![]() | GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from OrderedCollectionBase<T>.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Remove(String) | Removes the element that has the specified name from the collection. (Inherited from OrderedCollectionBase<T>.) |
![]() | Remove(T) | Removes the specified element from the collection. (Inherited from OrderedCollectionBase<T>.) |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable<IMetadataObject>.GetEnumerator | Returns an enumerator that can iterate through the collection. (Inherited from OrderedCollection<T>.) |
![]() ![]() | IEnumerable.GetEnumerator | Returns an enumerator that can iterate through the collection. (Inherited from OrderedCollection<T>.) |
![]() ![]() | IMetadataCollection<IMetadataObject>.AsMetadataObjectCollection | Gets an IMetadataCollection<T> object that contains this collection. (Inherited from OrderedCollection<T>.) |
![]() ![]() | IMetadataCollection<IMetadataObject>.Contains(String) | Determines whether the collection contains an element that has the specified name. (Inherited from OrderedCollection<T>.) |
![]() ![]() | IMetadataCollection<IMetadataObject>.Contains(IMetadataObject) | Determines whether the collection contains an element that has the specified name. (Inherited from OrderedCollection<T>.) |
![]() ![]() | IMetadataCollection<IMetadataObject>.Count | Gets the number of elements in the collection. (Inherited from OrderedCollection<T>.) |
![]() ![]() | IMetadataCollection<IMetadataObject>.FindAll(String) | Determines whether the collection contains an element that has the specified name. (Inherited from OrderedCollection<T>.) |
![]() ![]() | IMetadataCollection<IMetadataObject>.FindAll(Predicate<IMetadataObject>) | Retrieves all elements in the collection that match the conditions defined by the specified predicate. (Inherited from OrderedCollection<T>.) |
![]() ![]() | IMetadataCollection<IMetadataObject>.Item[String] | Gets the element in the collection by name. (Inherited from OrderedCollection<T>.) |
![]() ![]() | IMetadataCollection<T>.Item[String] | Gets the element that has the specified name. (Inherited from OrderedCollectionBase<T>.) |
![]() ![]() | IMetadataOrderedCollection<IMetadataObject>.Item | Gets an element in the collection at the specified index. (Inherited from OrderedCollection<T>.) |


