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.

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.SqlServer.Management.Sdk.Sfc 命名空间