Export (0) Print
Expand All

DatabasePermissionCollection Class

Represents a collection of IdatabasePermission objects.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

public class DatabasePermissionCollection : OrderedCollection<IDatabasePermission>

The DatabasePermissionCollection type exposes the following members.

  NameDescription
Public methodDatabasePermissionCollection(CollationInfo)Initializes a new instance of the DatabasePermissionCollection class that uses the specified object and the default initial capacity.
Public methodDatabasePermissionCollection(Int32, CollationInfo)Initializes a new instance of the DatabasePermissionCollection class that uses the specified capacity and CollationInfo object.
Top

  NameDescription
Public propertyAsMetadataObjectCollectionGets an IMetadataCollection<T> object that contains this collection. (Inherited from OrderedCollection<T>.)
Public propertyCountGets the number of elements in the collection. (Inherited from OrderedCollectionBase<T>.)
Public propertyItem[Int32]Gets the element at the specified index. (Inherited from OrderedCollectionBase<T>.)
Public propertyItem[String]Gets or sets the element that has the specified name. (Inherited from OrderedCollectionBase<T>.)
Top

  NameDescription
Public methodAddAdds an object to the collection using its name as the key. (Inherited from OrderedCollectionBase<T>.)
Public methodAddRangeAdds the elements of the specified collection to this collection. (Inherited from OrderedCollectionBase<T>.)
Public methodClearRemoves all elements from the collection. (Inherited from OrderedCollectionBase<T>.)
Public methodClone()Creates an IMutableMetadataCollection<T> instance that is a copy of this object, except for the elements. (Inherited from OrderedCollectionBase<T>.)
Public methodClone(Boolean)Creates an IMutableMetadataCollection<T> instance that is a copy of this object and, if specified, also copies the elements. (Inherited from OrderedCollectionBase<T>.)
Public methodContains(String)Determines whether the specified element is in the collection. (Inherited from OrderedCollectionBase<T>.)
Public methodContains(T)Determines whether the specified element is in the collection. (Inherited from OrderedCollectionBase<T>.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindAll(Predicate<T>)Finds all elements in the collection that match the conditions that are defined by the specified predicate. (Inherited from OrderedCollectionBase<T>.)
Public methodFindAll(String)Finds all elements in the collection that have the specified name. (Inherited from OrderedCollectionBase<T>.)
Public methodGetEnumeratorReturns an enumerator that iterates through the collection. (Inherited from OrderedCollectionBase<T>.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove(String)Removes the element that has the specified name from the collection. (Inherited from OrderedCollectionBase<T>.)
Public methodRemove(T)Removes the specified element from the collection. (Inherited from OrderedCollectionBase<T>.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable<IMetadataObject>.GetEnumeratorReturns an enumerator that can iterate through the collection. (Inherited from OrderedCollection<T>.)
Explicit interface implemetationPrivate methodIEnumerableGetEnumeratorReturns an enumerator that can iterate through the collection. (Inherited from OrderedCollection<T>.)
Explicit interface implemetationPrivate propertyIMetadataCollection<IMetadataObject>.AsMetadataObjectCollectionGets an IMetadataCollection<T> object that contains this collection. (Inherited from OrderedCollection<T>.)
Explicit interface implemetationPrivate methodIMetadataCollection<IMetadataObject>.Contains(String)Determines whether the collection contains an element that has the specified name. (Inherited from OrderedCollection<T>.)
Explicit interface implemetationPrivate methodIMetadataCollection<IMetadataObject>.Contains(IMetadataObject)Determines whether the collection contains an element that has the specified name. (Inherited from OrderedCollection<T>.)
Explicit interface implemetationPrivate propertyIMetadataCollection<IMetadataObject>.CountGets the number of elements in the collection. (Inherited from OrderedCollection<T>.)
Explicit interface implemetationPrivate methodIMetadataCollection<IMetadataObject>.FindAll(String)Determines whether the collection contains an element that has the specified name. (Inherited from OrderedCollection<T>.)
Explicit interface implemetationPrivate methodIMetadataCollection<IMetadataObject>.FindAll(Predicate<IMetadataObject>)Retrieves all elements in the collection that match the conditions defined by the specified predicate. (Inherited from OrderedCollection<T>.)
Explicit interface implemetationPrivate propertyIMetadataCollection<IMetadataObject>.Item[String]Gets the element in the collection by name. (Inherited from OrderedCollection<T>.)
Explicit interface implemetationPrivate propertyIMetadataCollection<T>.Item[String]Gets the element that has the specified name. (Inherited from OrderedCollectionBase<T>.)
Explicit interface implemetationPrivate propertyIMetadataOrderedCollection<IMetadataObject>.ItemGets an element in the collection at the specified index. (Inherited from OrderedCollection<T>.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft