次の方法で共有


ISet<T>.SetEquals Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Determines whether the current set and the specified collection contain the same elements.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)

Syntax

'Declaration
Function SetEquals ( _
    other As IEnumerable(Of T) _
) As Boolean
bool SetEquals(
    IEnumerable<T> other
)

Parameters

Return Value

Type: System.Boolean
true if the current set is equal to other; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

other is nulla null reference (Nothing in Visual Basic).

Remarks

This method ignores the order of elements and any duplicate elements in other.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.