Share via


IReadOnlySet<T> Interface

Defines properties and methods for the generic immutable sets.

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

Syntax

'Declaration
Public Interface IReadOnlySet(Of T) _
    Inherits IReadOnlySet, IReadOnlyCollection(Of T), IReadOnlyCollection,  _
    IEnumerable(Of T), IEnumerable
'Usage
Dim instance As IReadOnlySet(Of T)
public interface IReadOnlySet<T> : IReadOnlySet, 
    IReadOnlyCollection<T>, IReadOnlyCollection, IEnumerable<T>, IEnumerable
generic<typename T>
public interface class IReadOnlySet : IReadOnlySet, 
    IReadOnlyCollection<T>, IReadOnlyCollection, IEnumerable<T>, IEnumerable
type IReadOnlySet<'T> =  
    interface 
        interface IReadOnlySet 
        interface IReadOnlyCollection<'T>
        interface IReadOnlyCollection 
        interface IEnumerable<'T>
        interface IEnumerable 
    end
JScript does not support generic types and methods.

Type Parameters

  • T
    The type of the elements in the set.

The IReadOnlySet<T> type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of items that are contained in the collection. (Inherited from IReadOnlyCollection.)

Top

Methods

  Name Description
Public method Contains Determines whether the specified item is contained in the collection. (Inherited from IReadOnlyCollection<T>.)
Public method CopyTo Copies the elements of the collection to the specified array, starting at a particular array index. (Inherited from IReadOnlyCollection<T>.)
Public method GetEnumerator (Inherited from IEnumerable<T>.)
Public method IsProperSubsetOf(IEnumerable) Checks if this set is a subset of another set, but differs from it. (Inherited from IReadOnlySet.)
Public method IsProperSubsetOf(IEnumerable<T>) Determines whether this set is a subset of another set, but differs from it.
Public method IsProperSupersetOf(IEnumerable) Checks if this set is a superset of another set, but differs from it. (Inherited from IReadOnlySet.)
Public method IsProperSupersetOf(IEnumerable<T>) Determines whether this set is a superset of another set, but differs from it.
Public method IsSubsetOf(IEnumerable) Checks if this set is a subset of another set. (Inherited from IReadOnlySet.)
Public method IsSubsetOf(IEnumerable<T>) Determines whether this set is a subset of another set.
Public method IsSupersetOf(IEnumerable) Checks if this set is a superset of another set. (Inherited from IReadOnlySet.)
Public method IsSupersetOf(IEnumerable<T>) Determines whether this set is a superset of another set.
Public method Overlaps(IEnumerable) Checks if this set has any elements in common with another set. (Inherited from IReadOnlySet.)
Public method Overlaps(IEnumerable<T>) Determines whether this set has any elements in common with another set.
Public method SetEquals(IEnumerable) Checks if this set contains the same and only the same elements as the other. (Inherited from IReadOnlySet.)
Public method SetEquals(IEnumerable<T>) Determines whether this set contains the same and only the same elements as the other.

Top

See Also

Reference

Microsoft.SqlServer.Management.Sdk.Sfc Namespace