Condividi tramite


Classe SfcCollatedDictionaryCollection<T, K, ParentT>

Represents a collection base class that uses an internal collection that is a SortedDictionary<K, T> object. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollection<T, K, ParentT>
    Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollatedDictionaryCollection<T, K, ParentT>
      Altro...

Spazio dei nomi  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintassi

'Dichiarazione
Public MustInherit Class SfcCollatedDictionaryCollection(Of T As SfcInstance, K As SfcKey, ParentT As SfcInstance) _
    Inherits SfcCollection(Of T, K, ParentT) _
    Implements IComparer(Of K), IEnumerable(Of T),  _
    IEnumerable
'Utilizzo
Dim instance As SfcCollatedDictionaryCollection(Of T, K, ParentT)
public abstract class SfcCollatedDictionaryCollection<T, K, ParentT> : SfcCollection<T, K, ParentT>, 
    IComparer<K>, IEnumerable<T>, IEnumerable 
where T : SfcInstance 
where K : SfcKey 
where ParentT : SfcInstance
generic<typename T, typename K, typename ParentT>
where T : SfcInstance 
where K : SfcKey 
where ParentT : SfcInstance 
public ref class SfcCollatedDictionaryCollection abstract : public SfcCollection<T, K, ParentT>, 
    IComparer<K>, IEnumerable<T>, IEnumerable
[<AbstractClassAttribute>]
type SfcCollatedDictionaryCollection<'T, 'K, 'ParentT when 'T : SfcInstance when 'K : SfcKey when 'ParentT : SfcInstance> =  
    class 
        inherit SfcCollection<'T, 'K, 'ParentT>
        interface IComparer<'K>
        interface IEnumerable<'T>
        interface IEnumerable 
    end
JScript non supporta i metodi e i tipi generici.

Parametri di tipo

  • T
    The type of the items in the collection, constrained to SfcInstance.
  • K
    The type of the key, constrained to SfcKey.
  • ParentT
    The type of the parent object, constrained to SfcInstance.

Nel tipo SfcCollatedDictionaryCollection<T, K, ParentT> sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo protetto SfcCollatedDictionaryCollection<T, K, ParentT>(ParentT) Initializes a new instance of the SfcCollatedDictionaryCollection<T, K, ParentT> class using the specified parent. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.
Metodo protetto SfcCollatedDictionaryCollection<T, K, ParentT>(ParentT, IComparer<String>) Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Initializes a new instance of the SfcCollatedDictionaryCollection<T, K, ParentT> class using the specified parent and IComparer<T> object.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Ascending Gets or sets a value indicating whether to sort in ascending order. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.
Proprietà pubblica Count Gets the number of elements contained in the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.Count.
Proprietà protetta CultureInfo Gets or sets the CultureInfo object that is used by the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.
Proprietà protetta IgnoreCase Gets or sets a value indicating whether the collection is case-sensitive. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.
Proprietà protetta Initialized Gets a value indicating whether the collection has been initialized. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Proprietà pubblica IsReadOnly Gets a value indicating whether the collection is read-only. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.IsReadOnly.
Proprietà pubblica IsSynchronized Gets or sets a value indicating whether access to the collection is synchronized (thread safe). Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Proprietà pubblica Item Gets the item specified by the key. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Proprietà protetta Parent Gets or sets the type of the parent object. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Proprietà pubblica SyncRoot Gets or sets an object that can be used to synchronize access to the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Add Adds the specified object to the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Metodo protetto AddImpl Adds an object or member to this collection. Esegue l'override di SfcCollection<T, K, ParentT>.AddImpl(T).
Metodo protetto AddShadow Adds the specified object to the shadow collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.AddShadow(T).
Metodo pubblico Clear Removes all items from the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.Clear().
Metodo pubblico Contains(K) Determines whether the collection contains the specified key. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.Contains(T).
Metodo pubblico Contains(T) Determines whether the collection contains the specified object. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.Contains(T).
Metodo pubblico CopyTo(array<T[], Int32) Copies the elements from the collection to the specified array, starting at the specified array index. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.CopyTo(array<T[], Int32).
Metodo pubblico CopyTo(Array, Int32) Copies the elements from the collection to the specified array, starting at the specified array index. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Metodo protetto CreateAndInitializeChildObject Creates a child object and adds it to the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Metodo protetto EnsureCollectionInitialized Initialize the collection from the server. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo protetto FinishMerge Swaps the new collection for the old collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.FinishMerge().
Metodo protetto GetCollectionElementNameImpl Gets the Uniform Resource Name (URN) suffix for elements in the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Metodo protetto GetElementFactoryImpl Returns the factory that is used to instantiate objects for the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Metodo pubblico GetEnumerator Returns an enumerator that can iterate through the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.GetEnumerator().
Metodo protetto GetExistingObjectByKey Uses the specified key to retrieve an existing object from the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.GetExistingObjectByKey(K).
Metodo pubblico GetHashCode Ereditato da Object.
Metodo protetto GetObjectByKey Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.GetObjectByKey(K).
Metodo pubblico GetType Ereditato da Object.
Metodo protetto InitInnerCollection Creates an empty internal collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.InitInnerCollection().
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo protetto PrepareMerge Prepares to merge fresh query results into the existing collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.PrepareMerge().
Metodo pubblico Refresh() Refreshes the collection by creating new and merging existing objects and properties in the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Metodo pubblico Refresh(Boolean) Refreshes the collection by creating new and merging existing objects and properties in the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Metodo pubblico Remove Removes the specified object from the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Esegue l'override di SfcCollection<T, K, ParentT>.Remove(T).
Metodo protetto RemoveImpl Removes the specified object from the collection. Esegue l'override di SfcCollection<T, K, ParentT>.RemoveImpl(T).
Metodo protetto RemoveInternal Marks the specified object for removal. The state of the object is set to ToBeDropped. The object will be removed when the parent is altered or dropped. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Metodo protetto Rename Renames the specified object. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Metodo protetto ResetInnerCollection Resets the CultureInfo, IgnoreCase, and Ascending properties on the inner collection to honor the new settings. Call this method after any of the properties have changed. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.
Metodo pubblico ToString Ereditato da Object.
Metodo pubblico TryGetValue Gets the value associated with the specified key.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato IComparer<K>.Compare Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Compares two keys.
Implementazione esplicita dell'interfacciaProprietà privata IListSource.ContainsListCollection Gets a value indicating whether the collection is a collection of IList objects. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato IEnumerable.GetEnumerator Gets an enumerator that can iterate the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato IListSource.GetList Returns an IList object that can be bound to a data source from an object that does not implement the IList interface. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.Add Adds the specified object to the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.AddShadow Adds the specified object to the shadow collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaProprietà privata ISfcCollection.Count Gets the number of items contained in the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.EnsureInitialized Initializes the collection from the server. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.FinishMerge Swaps the new collection for the old collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.GetCollectionElementNameImpl Gets the URN suffix for elements in the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.GetElementFactory Gets the factory that is used to instantiate objects for the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.GetExisting Uses the specified key to retrieve an existing item from the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.GetObjectByKey Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaProprietà privata ISfcCollection.Initialized Gets or sets a value indicating whether the collection has been initialized. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaProprietà privata ISfcCollection.Parent Gets the parent object. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.PrepareMerge Prepares to merge fresh query results into the existing collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.Remove Removes the specified object from the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.RemoveElement Removes the specified element from the collection. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.
Implementazione esplicita dell'interfacciaMetodo privato ISfcCollection.Rename Renames the specified object. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SfcCollection<T, K, ParentT>.

In alto

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Sdk.Sfc

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollection<T, K, ParentT>
    Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollatedDictionaryCollection<T, K, ParentT>
      Microsoft.SqlServer.Management.Collector.CollectionItemCollection
      Microsoft.SqlServer.Management.Collector.CollectionSetCollection
      Microsoft.SqlServer.Management.Dmf.PolicyCategoryCollection
      Microsoft.SqlServer.Management.Dmf.PolicyCollection
      Microsoft.SqlServer.Management.Dmf.TargetSetCollection
      Microsoft.SqlServer.Management.Dmf.TargetSetLevelCollection
      Microsoft.SqlServer.Management.RegisteredServers.RegisteredServerCollection
      Microsoft.SqlServer.Management.RegisteredServers.ServerGroupCollection
      Microsoft.SqlServer.Management.Utility.ComputerCollection
      Microsoft.SqlServer.Management.Utility.DeployedDacCollection
      Microsoft.SqlServer.Management.Utility.ManagedInstanceCollection
      Microsoft.SqlServer.Management.Utility.VolumeCollection
      Microsoft.SqlServer.Management.XEvent.ActionCollection
      Microsoft.SqlServer.Management.XEvent.ActionInfoCollection
      Microsoft.SqlServer.Management.XEvent.DataEventColumnInfoCollection
      Microsoft.SqlServer.Management.XEvent.EventCollection
      Microsoft.SqlServer.Management.XEvent.EventColumnInfoCollection
      Microsoft.SqlServer.Management.XEvent.EventFieldCollection
      Microsoft.SqlServer.Management.XEvent.EventInfoCollection
      Microsoft.SqlServer.Management.XEvent.MapInfoCollection
      Microsoft.SqlServer.Management.XEvent.MapValueInfoCollection
      Microsoft.SqlServer.Management.XEvent.PackageCollection
      Microsoft.SqlServer.Management.XEvent.PredCompareInfoCollection
      Microsoft.SqlServer.Management.XEvent.PredSourceInfoCollection
      Microsoft.SqlServer.Management.XEvent.ReadOnlyEventColumnInfoCollection
      Microsoft.SqlServer.Management.XEvent.SessionCollection
      Microsoft.SqlServer.Management.XEvent.TargetCollection
      Microsoft.SqlServer.Management.XEvent.TargetColumnInfoCollection
      Microsoft.SqlServer.Management.XEvent.TargetFieldCollection
      Microsoft.SqlServer.Management.XEvent.TargetInfoCollection
      Microsoft.SqlServer.Management.XEvent.TypeInfoCollection