다음을 통해 공유


Collection<T>.Filter 메서드

Creates a wrapper collection that filters out all the elements that do not match the conditions defined by the specified predicate.

네임스페이스:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
어셈블리:  Microsoft.SqlServer.Management.SqlParser(Microsoft.SqlServer.Management.SqlParser.dll)

구문

‘선언
Public Shared Function Filter ( _
    collection As IMetadataCollection(Of T), _
    match As Predicate(Of T) _
) As IMetadataCollection(Of T)
‘사용 방법
Dim collection As IMetadataCollection(Of T)
Dim match As Predicate(Of T)
Dim returnValue As IMetadataCollection(Of T)

returnValue = Collection.Filter(collection, _
    match)
public static IMetadataCollection<T> Filter(
    IMetadataCollection<T> collection,
    Predicate<T> match
)
public:
static IMetadataCollection<T>^ Filter(
    IMetadataCollection<T>^ collection, 
    Predicate<T>^ match
)
static member Filter : 
        collection:IMetadataCollection<'T> * 
        match:Predicate<'T> -> IMetadataCollection<'T> 
public static function Filter(
    collection : IMetadataCollection<T>, 
    match : Predicate<T>
) : IMetadataCollection<T>

매개 변수

  • match
    유형: System.Predicate<T>
    The Predicate delegate that defines the conditions of the elements to include in the new collection.

반환 값

유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<T>
A wrapper collection that includes only the elements that match the conditions defined in the predicate.

참고 항목

참조

Collection<T> 클래스

Microsoft.SqlServer.Management.SqlParser.MetadataProvider 네임스페이스