共用方式為


MemoryExtensions.ContainsAnyExcept 方法

定義

多載

ContainsAnyExcept<T>(Span<T>, T, T)

搜尋 value0value1以外的任何值。

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T)

搜尋 value0value1以外的任何值。

ContainsAnyExcept<T>(Span<T>, T, T, T)

搜尋 value0value1value2以外的任何值。

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T, T)

搜尋 value0value1value2以外的任何值。

ContainsAnyExcept<T>(Span<T>, T)

搜尋指定之 value以外的任何值。

ContainsAnyExcept<T>(ReadOnlySpan<T>, T)

搜尋指定之 value以外的任何值。

ContainsAnyExcept<T>(Span<T>, SearchValues<T>)

搜尋指定之 values以外的任何值。

ContainsAnyExcept<T>(ReadOnlySpan<T>, SearchValues<T>)

搜尋指定之 values以外的任何值。

ContainsAnyExcept<T>(Span<T>, ReadOnlySpan<T>)

搜尋指定之 values以外的任何值。

ContainsAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

搜尋指定之 values以外的任何值。

ContainsAnyExcept<T>(Span<T>, T, T)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

搜尋 value0value1以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(Span<T> span, T value0, T value1);
public static bool ContainsAnyExcept<T> (this Span<T> span, T value0, T value1) where T : IEquatable<T>;
static member ContainsAnyExcept : Span<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(Of T As IEquatable(Of T)) (span As Span(Of T), value0 As T, value1 As T) As Boolean

類型參數

T

參數

span
Span<T>

要搜尋的範圍。

value0
T

要從搜尋中排除的值。

value1
T

要從搜尋中排除的值。

傳回

如果 value0value1 以外的任何值存在於範圍中,true。 如果所有值都是 value0value1,則會傳回 false

適用於

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

搜尋 value0value1以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(ReadOnlySpan<T> span, T value0, T value1);
public static bool ContainsAnyExcept<T> (this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>;
static member ContainsAnyExcept : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), value0 As T, value1 As T) As Boolean

類型參數

T

參數

span
ReadOnlySpan<T>

要搜尋的範圍。

value0
T

要從搜尋中排除的值。

value1
T

要從搜尋中排除的值。

傳回

如果 value0value1 以外的任何值存在於範圍中,true。 如果所有值都是 value0value1,則會傳回 false

適用於

ContainsAnyExcept<T>(Span<T>, T, T, T)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

搜尋 value0value1value2以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(Span<T> span, T value0, T value1, T value2);
public static bool ContainsAnyExcept<T> (this Span<T> span, T value0, T value1, T value2) where T : IEquatable<T>;
static member ContainsAnyExcept : Span<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(Of T As IEquatable(Of T)) (span As Span(Of T), value0 As T, value1 As T, value2 As T) As Boolean

類型參數

T

參數

span
Span<T>

要搜尋的範圍。

value0
T

要從搜尋中排除的值。

value1
T

要從搜尋中排除的值。

value2
T

要從搜尋中排除的值。

傳回

如果 value0value1value2 以外的任何值存在於範圍中,true。 如果所有值都 value0value1value2,則會傳回 false

適用於

ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T, T)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

搜尋 value0value1value2以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(ReadOnlySpan<T> span, T value0, T value1, T value2);
public static bool ContainsAnyExcept<T> (this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>;
static member ContainsAnyExcept : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T * 'T * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), value0 As T, value1 As T, value2 As T) As Boolean

類型參數

T

參數

span
ReadOnlySpan<T>

要搜尋的範圍。

value0
T

要從搜尋中排除的值。

value1
T

要從搜尋中排除的值。

value2
T

要從搜尋中排除的值。

傳回

如果 value0value1value2 以外的任何值存在於範圍中,true。 如果所有值都 value0value1value2,則會傳回 false

適用於

ContainsAnyExcept<T>(Span<T>, T)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

搜尋指定之 value以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(Span<T> span, T value);
public static bool ContainsAnyExcept<T> (this Span<T> span, T value) where T : IEquatable<T>;
static member ContainsAnyExcept : Span<'T (requires 'T :> IEquatable<'T>)> * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(Of T As IEquatable(Of T)) (span As Span(Of T), value As T) As Boolean

類型參數

T

參數

span
Span<T>

要搜尋的範圍。

value
T

要從搜尋中排除的值。

傳回

如果範圍中有 value 以外的任何值,true。 如果所有值都 value,則會傳回 false

適用於

ContainsAnyExcept<T>(ReadOnlySpan<T>, T)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

搜尋指定之 value以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(ReadOnlySpan<T> span, T value);
public static bool ContainsAnyExcept<T> (this ReadOnlySpan<T> span, T value) where T : IEquatable<T>;
static member ContainsAnyExcept : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), value As T) As Boolean

類型參數

T

參數

span
ReadOnlySpan<T>

要搜尋的範圍。

value
T

要從搜尋中排除的值。

傳回

如果範圍中有 value 以外的任何值,true。 如果所有值都 value,則會傳回 false

適用於

ContainsAnyExcept<T>(Span<T>, SearchValues<T>)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

搜尋指定之 values以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(Span<T> span, System::Buffers::SearchValues<T> ^ values);
public static bool ContainsAnyExcept<T> (this Span<T> span, System.Buffers.SearchValues<T> values) where T : IEquatable<T>;
static member ContainsAnyExcept : Span<'T (requires 'T :> IEquatable<'T>)> * System.Buffers.SearchValues<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(Of T As IEquatable(Of T)) (span As Span(Of T), values As SearchValues(Of T)) As Boolean

類型參數

T

參數

span
Span<T>

要搜尋的範圍。

values
SearchValues<T>

要從搜尋中排除的值集。

傳回

如果 values 以外的任何值存在於範圍中,true。 如果所有值都在 values中,則會傳回 false

適用於

ContainsAnyExcept<T>(ReadOnlySpan<T>, SearchValues<T>)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

搜尋指定之 values以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(ReadOnlySpan<T> span, System::Buffers::SearchValues<T> ^ values);
public static bool ContainsAnyExcept<T> (this ReadOnlySpan<T> span, System.Buffers.SearchValues<T> values) where T : IEquatable<T>;
static member ContainsAnyExcept : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * System.Buffers.SearchValues<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), values As SearchValues(Of T)) As Boolean

類型參數

T

參數

span
ReadOnlySpan<T>

要搜尋的範圍。

values
SearchValues<T>

要從搜尋中排除的值集。

傳回

如果 values 以外的任何值存在於範圍中,true。 如果所有值都在 values中,則會傳回 false

適用於

ContainsAnyExcept<T>(Span<T>, ReadOnlySpan<T>)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

搜尋指定之 values以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(Span<T> span, ReadOnlySpan<T> values);
public static bool ContainsAnyExcept<T> (this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;
static member ContainsAnyExcept : Span<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(Of T As IEquatable(Of T)) (span As Span(Of T), values As ReadOnlySpan(Of T)) As Boolean

類型參數

T

參數

span
Span<T>

要搜尋的範圍。

values
ReadOnlySpan<T>

要從搜尋中排除的值集。

傳回

如果 values 以外的任何值存在於範圍中,true。 如果所有值都在 values中,則會傳回 false

適用於

ContainsAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

搜尋指定之 values以外的任何值。

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExcept(ReadOnlySpan<T> span, ReadOnlySpan<T> values);
public static bool ContainsAnyExcept<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>;
static member ContainsAnyExcept : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function ContainsAnyExcept(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), values As ReadOnlySpan(Of T)) As Boolean

類型參數

T

參數

span
ReadOnlySpan<T>

要搜尋的範圍。

values
ReadOnlySpan<T>

要從搜尋中排除的值集。

傳回

如果 values 以外的任何值存在於範圍中,true。 如果所有值都在 values中,則會傳回 false

適用於