Classe SfcReferenceCollection<K, T, S>
Represents the base for all domain collections.
Hiérarchie d'héritage
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcReferenceCollection<K, T, S>
Espace de noms : Microsoft.SqlServer.Management.Sdk.Sfc
Assembly : Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntaxe
'Déclaration
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
'Utilisation
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 ne prend pas en charge les types et les méthodes génériques.
Paramètres de type
- K
The key type of the target collection.
- T
The element type of the target collection.
- S
The type of the collection owner.
Le type SfcReferenceCollection<K, T, S> expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
SfcReferenceCollection<K, T, S> | Initializes a new instance of the SfcReferenceCollection<K, T, S> class using the specified owner, resolver, and comparer. |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
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. |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
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 | (hérité de Object.) | |
Finalize | (hérité de Object.) | |
GetEnumerator | Returns an enumerator that iterates through a collection. | |
GetHashCode | (hérité de Object.) | |
GetKeyFromValue | Obtains a key from the item value. | |
GetType | (hérité de Object.) | |
MemberwiseClone | (hérité de Object.) | |
Refresh | Renews the inner collection storage and resolves to fill it. | |
ToString | (hérité de Object.) | |
TryGetValue | Gets the value associated with the specified key. |
Haut de la page
Implémentations d'interfaces explicites
Nom | Description | |
---|---|---|
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. |
Haut de la page
Notes
This class abstracts all the necessary handshaking between the parent object, and the collection or element objects.
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.