Classe SfcReferenceCollection<K, T, S>

Represents the base for all domain collections.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcReferenceCollection<K, T, S>

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 SfcReferenceCollection(Of K As {Object, IComparable(Of K)}, T As SfcInstance, S As SfcInstance) _
    Implements IReadOnlyDictionary(Of K, T), IReadOnlyCollection(Of T),  _
    IReadOnlyCollection, IEnumerable(Of T), IEnumerable, IListSource
'Utilizzo
Dim instance As SfcReferenceCollection(Of K, T, S)
public abstract class SfcReferenceCollection<K, T, S> : IReadOnlyDictionary<K, T>, 
    IReadOnlyCollection<T>, IReadOnlyCollection, IEnumerable<T>, IEnumerable, IListSource 
where K : Object, IComparable<K>
where T : SfcInstance 
where S : SfcInstance
generic<typename K, typename T, typename S>
where K : Object, IComparable<K>
where T : SfcInstance 
where S : SfcInstance 
public ref class SfcReferenceCollection abstract : IReadOnlyDictionary<K, T>, 
    IReadOnlyCollection<T>, IReadOnlyCollection, IEnumerable<T>, IEnumerable, IListSource
[<AbstractClassAttribute>]
type SfcReferenceCollection<'K, 'T, 'S when 'K : Object and IComparable<'K> when 'T : SfcInstance when 'S : SfcInstance> =  
    class 
        interface IReadOnlyDictionary<'K, 'T>
        interface IReadOnlyCollection<'T>
        interface IReadOnlyCollection 
        interface IEnumerable<'T>
        interface IEnumerable 
        interface IListSource 
    end
JScript non supporta i metodi e i tipi generici.

Parametri di tipo

  • K
    The key type of the target collection.
  • T
    The element type of the target collection.
  • S
    The type of the collection owner.

Nel tipo SfcReferenceCollection<K, T, S> sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo protetto SfcReferenceCollection<K, T, S> Initializes a new instance of the SfcReferenceCollection<K, T, S> class using the specified owner, resolver, and comparer.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Count Gets the number of elements contained in the collection.
Proprietà pubblica Item Gets the element associated with the specified key.
Proprietà pubblica Keys Gets the collection of keys contained in this collection.
Proprietà pubblica Values Gets the collection of values contained in this collection.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Contains Determines whether this collection contains an element with the specified value.
Metodo pubblico ContainsKey Determines whether SfcReferenceCollection<K, T, S> contains an element with the specified key.
Metodo pubblico CopyTo Copies the elements of this collection to the specified array, starting at specified index.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetEnumerator Returns an enumerator that iterates through a collection.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo protetto GetKeyFromValue Obtains a key from the item value.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico Refresh Renews the inner collection storage and resolves to fill it.
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'interfacciaProprietà privata IListSource.ContainsListCollection Gets a value indicating whether this list is an IList collection.
Implementazione esplicita dell'interfacciaMetodo privato IEnumerable<T>.GetEnumerator Returns an enumerator that iterates through a collection.
Implementazione esplicita dell'interfacciaMetodo privato IListSource.GetList Creates a list of values from the collection that can be accessed by index, sorted, and searched.

In alto

Osservazioni

This class abstracts all the necessary handshaking between the parent object, and the collection or element objects.

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