Freigeben über


SfcReferenceCollection<K, T, S>-Klasse

Represents the base for all domain collections.

Vererbungshierarchie

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

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

Syntax

'Declaration
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
'Usage
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 bietet keine Unterstützung für die Verwendung generischer Typen und Methoden.

Typparameter

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

Der SfcReferenceCollection<K, T, S>-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Geschützte Methode SfcReferenceCollection<K, T, S> Initializes a new instance of the SfcReferenceCollection<K, T, S> class using the specified owner, resolver, and comparer.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Count Gets the number of elements contained in the collection.
Öffentliche Eigenschaft Item Gets the element associated with the specified key.
Öffentliche Eigenschaft Keys Gets the collection of keys contained in this collection.
Öffentliche Eigenschaft Values Gets the collection of values contained in this collection.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Contains Determines whether this collection contains an element with the specified value.
Öffentliche Methode ContainsKey Determines whether SfcReferenceCollection<K, T, S> contains an element with the specified key.
Öffentliche Methode CopyTo Copies the elements of this collection to the specified array, starting at specified index.
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetEnumerator Returns an enumerator that iterates through a collection.
Öffentliche Methode GetHashCode (Geerbt von Object.)
Geschützte Methode GetKeyFromValue Obtains a key from the item value.
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode Refresh Renews the inner collection storage and resolves to fill it.
Öffentliche Methode ToString (Geerbt von Object.)
Öffentliche Methode TryGetValue Gets the value associated with the specified key.

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Eigenschaft IListSource.ContainsListCollection Gets a value indicating whether this list is an IList collection.
Explizite SchnittstellenimplementierungPrivate Methode IEnumerable<T>.GetEnumerator Returns an enumerator that iterates through a collection.
Explizite SchnittstellenimplementierungPrivate Methode IListSource.GetList Creates a list of values from the collection that can be accessed by index, sorted, and searched.

Zum Anfang

Hinweise

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

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Sdk.Sfc-Namespace