TriTypeSortedListCollection<T, B1, B2> Class
Represents a collection of metadata objects that implements IMetadataCollection<T> for T, B1 and B2 types.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.DictionaryCollectionBase<T, SortedList<String, T>>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.SortedListCollection<T>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.DualTypeSortedListCollection<T, B1>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.TriTypeSortedListCollection<T, B1, B2>
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.ScalarValuedFunctionCollection
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.TableCollection
Microsoft.SqlServer.Management.SqlParser.MetadataProvider.ViewCollection
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Public Class TriTypeSortedListCollection(Of T As {Class, B1, B2}, B1 As {Class, IMetadataObject}, B2 As {Class, IMetadataObject}) _
Inherits DualTypeSortedListCollection(Of T, B1) _
Implements IMetadataCollection(Of B2), IEnumerable(Of B2), _
IEnumerable
'Usage
Dim instance As TriTypeSortedListCollection(Of T, B1, B2)
public class TriTypeSortedListCollection<T, B1, B2> : DualTypeSortedListCollection<T, B1>,
IMetadataCollection<B2>, IEnumerable<B2>, IEnumerable
where T : class, B1, B2
where B1 : class, IMetadataObject
where B2 : class, IMetadataObject
generic<typename T, typename B1, typename B2>
where T : ref class, B1, B2
where B1 : ref class, IMetadataObject
where B2 : ref class, IMetadataObject
public ref class TriTypeSortedListCollection : public DualTypeSortedListCollection<T, B1>,
IMetadataCollection<B2>, IEnumerable<B2>, IEnumerable
type TriTypeSortedListCollection<'T, 'B1, 'B2 when 'T : not struct and 'B1 and 'B2 when 'B1 : not struct and IMetadataObject when 'B2 : not struct and IMetadataObject> =
class
inherit DualTypeSortedListCollection<'T, 'B1>
interface IMetadataCollection<'B2>
interface IEnumerable<'B2>
interface IEnumerable
end
JScript does not support generic types and methods.
Type Parameters
- T
The main type of elements in the collection.
- B1
A base class or an interface that the main type T extends or implements.
- B2
A base class or an interface that the main type T extends or implements.
The TriTypeSortedListCollection<T, B1, B2> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TriTypeSortedListCollection<T, B1, B2> | Initializes a new instance of the TriTypeSortedListCollection class that uses the specified capacity and CollationInfo object. |
Top
Properties
Name | Description | |
---|---|---|
AsMetadataObjectCollection | Gets an IMetadataCollection<T> object that contains this collection. (Inherited from SortedListCollection<T>.) | |
Count | Gets the number of elements in the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
Item | Gets or sets the object in the collection that has the specified name. (Inherited from DictionaryCollectionBase<T, U>.) |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds an object to the collection using its name as the key. (Inherited from DictionaryCollectionBase<T, U>.) | |
AddRange | Adds the elements in the specified collection to this collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
Clear | Removes all elements from the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
Clone() | Creates an IMutableMetadataCollection<T> object that is a copy of this object, except for the elements. (Inherited from DictionaryCollectionBase<T, U>.) | |
Clone(Boolean) | Creates an IMutableMetadataCollection<T> object that is a copy of this object and, if specified, also copies the elements. (Inherited from SortedListCollection<T>.) | |
Contains(String) | Determines whether the specified element is in the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
FindAll(Predicate<T>) | Finds all elements in the collection that match the conditions defined by the specified predicate. (Inherited from DictionaryCollectionBase<T, U>.) | |
FindAll(String) | Finds all elements in the collection that have the specified name. (Inherited from DictionaryCollectionBase<T, U>.) | |
GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Remove(String) | Removes the object with the specified name from the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable<B>.GetEnumerator() | Returns an enumerator that iterates through the collection. (Inherited from DualTypeSortedListCollection<T, B>.) | |
IEnumerable<IMetadataObject>.GetEnumerator() | Returns an enumerator that iterates through the collection. (Inherited from SortedListCollection<T>.) | |
IEnumerable<B2>.GetEnumerator() | Returns an enumerator that iterates through the collection. | |
IEnumerable.GetEnumerator | Returns an enumerator that iterates through the collection. | |
IMetadataCollection<B>.AsMetadataObjectCollection | Gets an IMetadataCollection<T> object that contains this collection. (Inherited from DualTypeSortedListCollection<T, B>.) | |
IMetadataCollection<IMetadataObject>.AsMetadataObjectCollection | Gets an IMetadataCollection<T> object that contains this collection. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<B2>.AsMetadataObjectCollection | Gets an IMetadataCollection<T> object that contains this collection. | |
IMetadataCollection<B>.Contains(String) | Determines whether the collection contains the specified element. (Inherited from DualTypeSortedListCollection<T, B>.) | |
IMetadataCollection<IMetadataObject>.Contains(String) | Determines whether the collection contains an element that has the specified name. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<B2>.Contains(String) | Determines whether the collection contains an element that has the specified name. | |
IMetadataCollection<B2>.Contains(B2) | Determines whether the collection contains the specified object. | |
IMetadataCollection<IMetadataObject>.Contains(IMetadataObject) | Determines whether the collection contains the specified object. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<B>.Count | Gets the number of elements in the collection. (Inherited from DualTypeSortedListCollection<T, B>.) | |
IMetadataCollection<IMetadataObject>.Count | Gets the number of elements in the collection. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<B2>.Count | Gets the number of elements in the collection. | |
IMetadataCollection<B>.FindAll(Predicate<B>) | Retrieves all elements in the collection that match the conditions defined by the specified predicate. (Inherited from DualTypeSortedListCollection<T, B>.) | |
IMetadataCollection<B>.FindAll(String) | Retrieves all elements in the collection that have the specified name. (Inherited from DualTypeSortedListCollection<T, B>.) | |
IMetadataCollection<IMetadataObject>.FindAll(String) | Retrieves all elements in the collection that have the specified name. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<B2>.FindAll(Predicate<B2>) | Retrieves all elements in the collection that match the conditions defined by the specified predicate. | |
IMetadataCollection<B2>.FindAll(String) | Retrieves all elements in the collection that have the specified name. | |
IMetadataCollection<IMetadataObject>.FindAll(Predicate<IMetadataObject>) | Retrieves all elements in the collection that match the conditions defined by the specified predicate. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<T>.Item[String] | Gets the specified element from the collection. (Inherited from DictionaryCollectionBase<T, U>.) | |
IMetadataCollection<B>.Item[String] | Gets the specified element from the collection. (Inherited from DualTypeSortedListCollection<T, B>.) | |
IMetadataCollection<IMetadataObject>.Item[String] | Gets the element that has the specified name. (Inherited from SortedListCollection<T>.) | |
IMetadataCollection<B2>.Item[String] | Gets the element that has the specified name. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.