Поделиться через


Класс SfcReferenceCollection<K, T, S>

Represents the base for all domain collections.

Иерархия наследования

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

Пространство имен:  Microsoft.SqlServer.Management.Sdk.Sfc
Сборка:  Microsoft.SqlServer.Management.Sdk.Sfc (в Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Синтаксис

'Декларация
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
'Применение
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 не поддерживает стандартные типы и методы.

Параметры типа

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

Тип SfcReferenceCollection<K, T, S> обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Защищенный метод SfcReferenceCollection<K, T, S> Initializes a new instance of the SfcReferenceCollection<K, T, S> class using the specified owner, resolver, and comparer.

В начало

Свойства

  Имя Описание
Открытое свойство Count Gets the number of elements contained in the collection.
Открытое свойство Item Gets the element associated with the specified key.
Открытое свойство Keys Gets the collection of keys contained in this collection.
Открытое свойство Values Gets the collection of values contained in this collection.

В начало

Методы

  Имя Описание
Открытый метод Contains Determines whether this collection contains an element with the specified value.
Открытый метод ContainsKey Determines whether SfcReferenceCollection<K, T, S> contains an element with the specified key.
Открытый метод CopyTo Copies the elements of this collection to the specified array, starting at specified index.
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetEnumerator Returns an enumerator that iterates through a collection.
Открытый метод GetHashCode (Производный от Object.)
Защищенный метод GetKeyFromValue Obtains a key from the item value.
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод Refresh Renews the inner collection storage and resolves to fill it.
Открытый метод ToString (Производный от Object.)
Открытый метод TryGetValue Gets the value associated with the specified key.

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытое свойство IListSource.ContainsListCollection Gets a value indicating whether this list is an IList collection.
Явная реализация интерфейсаЗакрытый метод IEnumerable<T>.GetEnumerator Returns an enumerator that iterates through a collection.
Явная реализация интерфейсаЗакрытый метод IListSource.GetList Creates a list of values from the collection that can be accessed by index, sorted, and searched.

В начало

Замечания

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

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Management.Sdk.Sfc