ParallelEnumerable.Except Méthode
Définition
Produit la différence entre deux séquences parallèles.Produces the set difference of two parallel sequences.
Surcharges
Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>) |
Obsolète.
Cette surcharge Except ne doit jamais être appelée.This Except overload should never be called. Cette méthode est marquée comme obsolète et lève toujours NotSupportedException lorsqu'elle est appelée.This method is marked as obsolete and always throws NotSupportedException when called. |
Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>) |
Produit la différence définie entre deux séquences parallèles à l'aide du comparateur d'égalité par défaut pour comparer les valeurs.Produces the set difference of two parallel sequences by using the default equality comparer to compare values. |
Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) |
Obsolète.
Cette surcharge Except ne doit jamais être appelée.This Except overload should never be called. Cette méthode est marquée comme obsolète et lève toujours NotSupportedException lorsqu'elle est appelée.This method is marked as obsolete and always throws NotSupportedException when called. |
Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>) |
Produit la différence définie entre deux séquences parallèles à l'aide du IEqualityComparer<T> spécifié pour comparer les valeurs.Produces the set difference of two parallel sequences by using the specified IEqualityComparer<T> to compare values. |
Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>)
Attention
The second data source of a binary operator must be of type System.Linq.ParallelQuery rather than System.Collections.Generic.IEnumerable. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery.
Cette surcharge Except ne doit jamais être appelée.This Except overload should never be called. Cette méthode est marquée comme obsolète et lève toujours NotSupportedException lorsqu'elle est appelée.This method is marked as obsolete and always throws NotSupportedException when called.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TSource> ^ Except(System::Linq::ParallelQuery<TSource> ^ first, System::Collections::Generic::IEnumerable<TSource> ^ second);
[System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static System.Linq.ParallelQuery<TSource> Except<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second);
[<System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")>]
static member Except : System.Linq.ParallelQuery<'Source> * seq<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Except(Of TSource) (first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource)) As ParallelQuery(Of TSource)
Paramètres de type
- TSource
Ce paramètre de type n'est pas utilisé.This type parameter is not used.
Paramètres
- first
- ParallelQuery<TSource>
Ce paramètre n'est pas utilisé.This parameter is not used.
- second
- IEnumerable<TSource>
Ce paramètre n'est pas utilisé.This parameter is not used.
Retours
Cette surcharge lève toujours NotSupportedException.This overload always throws a NotSupportedException.
- Attributs
Exceptions
Exception qui se produit lorsque cette méthode est appelée.The exception that occurs when this method is called.
Remarques
Cette surcharge existe pour interdire l’utilisation de sauf avec une source de données gauche de type ParallelQuery<TSource> et une source de données de type droite IEnumerable<T> .This overload exists to disallow usage of Except with a left data source of type ParallelQuery<TSource> and a right data source of type IEnumerable<T>. Sinon, l’opérateur except semble être lié à l’implémentation parallèle, mais en réalité, il est lié à l’implémentation séquentielle.Otherwise, the Except operator would appear to be binding to the parallel implementation, but would in reality bind to the sequential implementation.
S’applique à
Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>)
Produit la différence définie entre deux séquences parallèles à l'aide du comparateur d'égalité par défaut pour comparer les valeurs.Produces the set difference of two parallel sequences by using the default equality comparer to compare values.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TSource> ^ Except(System::Linq::ParallelQuery<TSource> ^ first, System::Linq::ParallelQuery<TSource> ^ second);
public static System.Linq.ParallelQuery<TSource> Except<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second);
static member Except : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelQuery<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Except(Of TSource) (first As ParallelQuery(Of TSource), second As ParallelQuery(Of TSource)) As ParallelQuery(Of TSource)
Paramètres de type
- TSource
Type des éléments des séquences d'entrée.The type of the elements of the input sequences.
Paramètres
- first
- ParallelQuery<TSource>
Séquence dont les éléments qui ne se trouvent pas également dans second
seront retournés.A sequence whose elements that are not also in second
will be returned.
- second
- ParallelQuery<TSource>
Séquence dont les éléments qui figurent également dans la première séquence seront supprimés de la séquence retournée.A sequence whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence.
Retours
Séquence qui contient la différence entre les éléments de deux séquences.A sequence that contains the set difference of the elements of two sequences.
Exceptions
first
ou second
est une référence Null (Nothing en Visual Basic).first
or second
is a null reference (Nothing in Visual Basic).
La requête a été annulée avec le jeton passé dans WithCancellation
.The query was canceled with the token passed in through WithCancellation
.
Une ou plusieurs exceptions se sont produites lors de l’évaluation de la requête.One or more exceptions occurred during the evaluation of the query.
S’applique à
Except<TSource>(ParallelQuery<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>)
Attention
The second data source of a binary operator must be of type System.Linq.ParallelQuery rather than System.Collections.Generic.IEnumerable. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery.
Cette surcharge Except ne doit jamais être appelée.This Except overload should never be called. Cette méthode est marquée comme obsolète et lève toujours NotSupportedException lorsqu'elle est appelée.This method is marked as obsolete and always throws NotSupportedException when called.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TSource> ^ Except(System::Linq::ParallelQuery<TSource> ^ first, System::Collections::Generic::IEnumerable<TSource> ^ second, System::Collections::Generic::IEqualityComparer<TSource> ^ comparer);
[System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static System.Linq.ParallelQuery<TSource> Except<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second, System.Collections.Generic.IEqualityComparer<TSource> comparer);
[System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")]
public static System.Linq.ParallelQuery<TSource> Except<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Collections.Generic.IEnumerable<TSource> second, System.Collections.Generic.IEqualityComparer<TSource>? comparer);
[<System.Obsolete("The second data source of a binary operator must be of type System.Linq.ParallelQuery<T> rather than System.Collections.Generic.IEnumerable<T>. To fix this problem, use the AsParallel() extension method to convert the right data source to System.Linq.ParallelQuery<T>.")>]
static member Except : System.Linq.ParallelQuery<'Source> * seq<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Except(Of TSource) (first As ParallelQuery(Of TSource), second As IEnumerable(Of TSource), comparer As IEqualityComparer(Of TSource)) As ParallelQuery(Of TSource)
Paramètres de type
- TSource
Ce paramètre de type n'est pas utilisé.This type parameter is not used.
Paramètres
- first
- ParallelQuery<TSource>
Ce paramètre n'est pas utilisé.This parameter is not used.
- second
- IEnumerable<TSource>
Ce paramètre n'est pas utilisé.This parameter is not used.
- comparer
- IEqualityComparer<TSource>
Ce paramètre n'est pas utilisé.This parameter is not used.
Retours
Cette surcharge lève toujours NotSupportedException.This overload always throws a NotSupportedException.
- Attributs
Exceptions
Exception qui se produit lorsque cette méthode est appelée.The exception that occurs when this method is called.
Remarques
Cette surcharge existe pour interdire l’utilisation de sauf avec une source de données gauche de type ParallelQuery<TSource> et une source de données de type droite IEnumerable<T> .This overload exists to disallow usage of Except with a left data source of type ParallelQuery<TSource> and a right data source of type IEnumerable<T>. Sinon, l’opérateur except semble être lié à l’implémentation parallèle, mais en réalité, il est lié à l’implémentation séquentielle.Otherwise, the Except operator would appear to be binding to the parallel implementation, but would in reality bind to the sequential implementation.
S’applique à
Except<TSource>(ParallelQuery<TSource>, ParallelQuery<TSource>, IEqualityComparer<TSource>)
Produit la différence définie entre deux séquences parallèles à l'aide du IEqualityComparer<T> spécifié pour comparer les valeurs.Produces the set difference of two parallel sequences by using the specified IEqualityComparer<T> to compare values.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Linq::ParallelQuery<TSource> ^ Except(System::Linq::ParallelQuery<TSource> ^ first, System::Linq::ParallelQuery<TSource> ^ second, System::Collections::Generic::IEqualityComparer<TSource> ^ comparer);
public static System.Linq.ParallelQuery<TSource> Except<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second, System.Collections.Generic.IEqualityComparer<TSource> comparer);
public static System.Linq.ParallelQuery<TSource> Except<TSource> (this System.Linq.ParallelQuery<TSource> first, System.Linq.ParallelQuery<TSource> second, System.Collections.Generic.IEqualityComparer<TSource>? comparer);
static member Except : System.Linq.ParallelQuery<'Source> * System.Linq.ParallelQuery<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function Except(Of TSource) (first As ParallelQuery(Of TSource), second As ParallelQuery(Of TSource), comparer As IEqualityComparer(Of TSource)) As ParallelQuery(Of TSource)
Paramètres de type
- TSource
Type des éléments des séquences d'entrée.The type of the elements of the input sequences.
Paramètres
- first
- ParallelQuery<TSource>
Séquence dont les éléments qui ne se trouvent pas également dans second
seront retournés.A sequence whose elements that are not also in second
will be returned.
- second
- ParallelQuery<TSource>
Séquence dont les éléments qui figurent également dans la première séquence seront supprimés de la séquence retournée.A sequence whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence.
- comparer
- IEqualityComparer<TSource>
IEqualityComparer<T> pour comparer les valeurs.IEqualityComparer<T> to compare values.
Retours
Séquence qui contient la différence entre les éléments de deux séquences.A sequence that contains the set difference of the elements of two sequences.
Exceptions
first
ou second
est une référence Null (Nothing en Visual Basic).first
or second
is a null reference (Nothing in Visual Basic).
La requête a été annulée avec le jeton passé dans WithCancellation
.The query was canceled with the token passed in through WithCancellation
.
Une ou plusieurs exceptions se sont produites lors de l’évaluation de la requête.One or more exceptions occurred during the evaluation of the query.