Partilhar via


Classe SfcReferenceCollection<K, T, S>

Represents the base for all domain collections.

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (em Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintaxe

'Declaração
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
'Uso
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 não dá suporte a tipos e métodos genéricos.

Parâmetros de tipo

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

O tipo SfcReferenceCollection<K, T, S> expõe os membros a seguir.

Construtores

  Nome Descrição
Método protegido SfcReferenceCollection<K, T, S> Initializes a new instance of the SfcReferenceCollection<K, T, S> class using the specified owner, resolver, and comparer.

Início

Propriedades

  Nome Descrição
Propriedade pública Count Gets the number of elements contained in the collection.
Propriedade pública Item Gets the element associated with the specified key.
Propriedade pública Keys Gets the collection of keys contained in this collection.
Propriedade pública Values Gets the collection of values contained in this collection.

Início

Métodos

  Nome Descrição
Método público Contains Determines whether this collection contains an element with the specified value.
Método público ContainsKey Determines whether SfcReferenceCollection<K, T, S> contains an element with the specified key.
Método público CopyTo Copies the elements of this collection to the specified array, starting at specified index.
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetEnumerator Returns an enumerator that iterates through a collection.
Método público GetHashCode (Herdado de Object.)
Método protegido GetKeyFromValue Obtains a key from the item value.
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público Refresh Renews the inner collection storage and resolves to fill it.
Método público ToString (Herdado de Object.)
Método público TryGetValue Gets the value associated with the specified key.

Início

Implementações de interfaces explícitas

  Nome Descrição
Implementações de interfaces explícitasPropriedade privada IListSource.ContainsListCollection Gets a value indicating whether this list is an IList collection.
Implementações de interfaces explícitasMétodo privado IEnumerable<T>.GetEnumerator Returns an enumerator that iterates through a collection.
Implementações de interfaces explícitasMétodo privado IListSource.GetList Creates a list of values from the collection that can be accessed by index, sorted, and searched.

Início

Comentários

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

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.Sdk.Sfc