DualTypeSortedListCollection<T, B> Class

Represents a collection of metadata objects that implements IMetadataCollection<T> for T and B 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, B>
        More...

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

Syntax

'Declaration
Public Class DualTypeSortedListCollection(Of T As {Class, B}, B As {Class, IMetadataObject}) _
    Inherits SortedListCollection(Of T) _
    Implements IMetadataCollection(Of B), IEnumerable(Of B),  _
    IEnumerable
'Usage
Dim instance As DualTypeSortedListCollection(Of T, B)
public class DualTypeSortedListCollection<T, B> : SortedListCollection<T>, 
    IMetadataCollection<B>, IEnumerable<B>, IEnumerable 
where T : class, B
where B : class, IMetadataObject
generic<typename T, typename B>
where T : ref class, B
where B : ref class, IMetadataObject 
public ref class DualTypeSortedListCollection : public SortedListCollection<T>, 
    IMetadataCollection<B>, IEnumerable<B>, IEnumerable
type DualTypeSortedListCollection<'T, 'B when 'T : not struct and 'B when 'B : not struct and IMetadataObject> =  
    class 
        inherit SortedListCollection<'T>
        interface IMetadataCollection<'B>
        interface IEnumerable<'B>
        interface IEnumerable 
    end
JScript does not support generic types and methods.

Type Parameters

  • T
    The main type of elements in the collection.
  • B
    A base class or an interface that the main type T extends or implements.

The DualTypeSortedListCollection<T, B> type exposes the following members.

Constructors

  Name Description
Public method DualTypeSortedListCollection<T, B> Initializes a new instance of the DualTypeSortedListCollection class that uses the specified capacity and CollationInfo object.

Top

Properties

  Name Description
Public property AsMetadataObjectCollection Gets an IMetadataCollection<T> object that contains this collection. (Inherited from SortedListCollection<T>.)
Public property Count Gets the number of elements in the collection. (Inherited from DictionaryCollectionBase<T, U>.)
Public property Item Gets or sets the object in the collection that has the specified name. (Inherited from DictionaryCollectionBase<T, U>.)

Top

Methods

  Name Description
Public method Add Adds an object to the collection using its name as the key. (Inherited from DictionaryCollectionBase<T, U>.)
Public method AddRange Adds the elements in the specified collection to this collection. (Inherited from DictionaryCollectionBase<T, U>.)
Public method Clear Removes all elements from the collection. (Inherited from DictionaryCollectionBase<T, U>.)
Public method Clone() Creates an IMutableMetadataCollection<T> object that is a copy of this object, except for the elements. (Inherited from DictionaryCollectionBase<T, U>.)
Public method 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>.)
Public method Contains(String) Determines whether the specified element is in the collection. (Inherited from DictionaryCollectionBase<T, U>.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FindAll(Predicate<T>) Finds all elements in the collection that match the conditions defined by the specified predicate. (Inherited from DictionaryCollectionBase<T, U>.)
Public method FindAll(String) Finds all elements in the collection that have the specified name. (Inherited from DictionaryCollectionBase<T, U>.)
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from DictionaryCollectionBase<T, U>.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(String) Removes the object with the specified name from the collection. (Inherited from DictionaryCollectionBase<T, U>.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable<B>.GetEnumerator() Returns an enumerator that iterates through the collection.
Explicit interface implemetationPrivate method IEnumerable<IMetadataObject>.GetEnumerator() Returns an enumerator that iterates through the collection. (Inherited from SortedListCollection<T>.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that iterates through the collection.
Explicit interface implemetationPrivate property IMetadataCollection<B>.AsMetadataObjectCollection Gets an IMetadataCollection<T> object that contains this collection.
Explicit interface implemetationPrivate property IMetadataCollection<IMetadataObject>.AsMetadataObjectCollection Gets an IMetadataCollection<T> object that contains this collection. (Inherited from SortedListCollection<T>.)
Explicit interface implemetationPrivate method IMetadataCollection<B>.Contains(String) Determines whether the collection contains the specified element.
Explicit interface implemetationPrivate method IMetadataCollection<B>.Contains(B) Determines whether the collection contains the specified object.
Explicit interface implemetationPrivate method IMetadataCollection<IMetadataObject>.Contains(String) Determines whether the collection contains an element that has the specified name. (Inherited from SortedListCollection<T>.)
Explicit interface implemetationPrivate method IMetadataCollection<IMetadataObject>.Contains(IMetadataObject) Determines whether the collection contains the specified object. (Inherited from SortedListCollection<T>.)
Explicit interface implemetationPrivate property IMetadataCollection<B>.Count Gets the number of elements in the collection.
Explicit interface implemetationPrivate property IMetadataCollection<IMetadataObject>.Count Gets the number of elements in the collection. (Inherited from SortedListCollection<T>.)
Explicit interface implemetationPrivate method IMetadataCollection<B>.FindAll(Predicate<B>) Retrieves all elements in the collection that match the conditions defined by the specified predicate.
Explicit interface implemetationPrivate method IMetadataCollection<B>.FindAll(String) Retrieves all elements in the collection that have the specified name.
Explicit interface implemetationPrivate method IMetadataCollection<IMetadataObject>.FindAll(String) Retrieves all elements in the collection that have the specified name. (Inherited from SortedListCollection<T>.)
Explicit interface implemetationPrivate method IMetadataCollection<IMetadataObject>.FindAll(Predicate<IMetadataObject>) Retrieves all elements in the collection that match the conditions defined by the specified predicate. (Inherited from SortedListCollection<T>.)
Explicit interface implemetationPrivate property IMetadataCollection<T>.Item[String] Gets the specified element from the collection. (Inherited from DictionaryCollectionBase<T, U>.)
Explicit interface implemetationPrivate property IMetadataCollection<B>.Item[String] Gets the specified element from the collection.
Explicit interface implemetationPrivate property IMetadataCollection<IMetadataObject>.Item[String] Gets the element that has the specified name. (Inherited from SortedListCollection<T>.)

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.

See Also

Reference

Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace

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, B>
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.ApplicationRoleCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.AsymmetricKeyCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.CertificateCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.ColumnCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.CredentialCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.CursorVariableCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.DatabaseCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.DatabaseRoleCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.ExtendedStoredProcedureCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.LoginCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.ScalarVariableCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.SchemaCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.StoredProcedureCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.TableValuedFunctionCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.TableVariableCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.TriTypeSortedListCollection<T, B1, B2>
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.UdtMemberCollectionBase<T>
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.UserCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.UserDefinedClrTypeCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.UserDefinedDataTypeCollection
        Microsoft.SqlServer.Management.SqlParser.MetadataProvider.UserDefinedTableTypeCollection