共用方式為


ISet<T>.Overlaps Method

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

Determines whether the current set overlaps with the specified collection.

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

Syntax

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

Parameters

Return Value

Type: System.Boolean
true if the current set and other share at least one common element; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

Any duplicate elements in other are ignored.

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.