IReadOnlyCollection<T> 接口

Defines properties and methods for the generic type read-only collections.

命名空间:  Microsoft.SqlServer.Management.Sdk.Sfc
程序集:  Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

语法

声明
Public Interface IReadOnlyCollection(Of T) _
    Inherits IReadOnlyCollection, IEnumerable(Of T), IEnumerable
用法
Dim instance As IReadOnlyCollection(Of T)
public interface IReadOnlyCollection<T> : IReadOnlyCollection, 
    IEnumerable<T>, IEnumerable
generic<typename T>
public interface class IReadOnlyCollection : IReadOnlyCollection, 
    IEnumerable<T>, IEnumerable
type IReadOnlyCollection<'T> =  
    interface 
        interface IReadOnlyCollection 
        interface IEnumerable<'T>
        interface IEnumerable 
    end
JScript 不支持一般类型和方法。

类型参数

  • T
    The type of the element in the collection.

IReadOnlyCollection<T> 类型公开以下成员。

属性

  名称 说明
公共属性 Count Gets the number of items that are contained in the collection. (从 IReadOnlyCollection 继承。)

页首

方法

  名称 说明
公共方法 Contains Determines whether the specified item is contained in the collection.
公共方法 CopyTo Copies the elements of the collection to the specified array, starting at a particular array index.
公共方法 GetEnumerator (从 IEnumerable<T> 继承。)

页首

请参阅

参考

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