Επεξεργασία

Κοινή χρήση μέσω


SearchValues.Create Method

Definition

Overloads

Create(ReadOnlySpan<Byte>)

Creates an optimized representation of values used for efficient searching.

Create(ReadOnlySpan<Char>)

Creates an optimized representation of values used for efficient searching.

Create(ReadOnlySpan<String>, StringComparison)

Creates an optimized representation of values used for efficient searching.

Create(ReadOnlySpan<Byte>)

Source:
SearchValues.cs
Source:
SearchValues.cs

Creates an optimized representation of values used for efficient searching.

public:
 static System::Buffers::SearchValues<System::Byte> ^ Create(ReadOnlySpan<System::Byte> values);
public static System.Buffers.SearchValues<byte> Create (ReadOnlySpan<byte> values);
public static System.Buffers.SearchValues<byte> Create (scoped ReadOnlySpan<byte> values);
static member Create : ReadOnlySpan<byte> -> System.Buffers.SearchValues<byte>
Public Shared Function Create (values As ReadOnlySpan(Of Byte)) As SearchValues(Of Byte)

Parameters

values
ReadOnlySpan<Byte>

The set of values.

Returns

The optimized representation of values used for efficient searching.

Applies to

Create(ReadOnlySpan<Char>)

Source:
SearchValues.cs
Source:
SearchValues.cs

Creates an optimized representation of values used for efficient searching.

public:
 static System::Buffers::SearchValues<char> ^ Create(ReadOnlySpan<char> values);
public static System.Buffers.SearchValues<char> Create (ReadOnlySpan<char> values);
public static System.Buffers.SearchValues<char> Create (scoped ReadOnlySpan<char> values);
static member Create : ReadOnlySpan<char> -> System.Buffers.SearchValues<char>
Public Shared Function Create (values As ReadOnlySpan(Of Char)) As SearchValues(Of Char)

Parameters

values
ReadOnlySpan<Char>

The set of values.

Returns

The optimized representation of values used for efficient searching.

Applies to

Create(ReadOnlySpan<String>, StringComparison)

Source:
SearchValues.cs

Creates an optimized representation of values used for efficient searching.

public:
 static System::Buffers::SearchValues<System::String ^> ^ Create(ReadOnlySpan<System::String ^> values, StringComparison comparisonType);
public static System.Buffers.SearchValues<string> Create (ReadOnlySpan<string> values, StringComparison comparisonType);
static member Create : ReadOnlySpan<string> * StringComparison -> System.Buffers.SearchValues<string>
Public Shared Function Create (values As ReadOnlySpan(Of String), comparisonType As StringComparison) As SearchValues(Of String)

Parameters

values
ReadOnlySpan<String>

The set of values.

comparisonType
StringComparison

Specifies whether to use Ordinal or OrdinalIgnoreCase search semantics.

Returns

The optimized representation of values used for efficient searching.

Remarks

Only Ordinal or OrdinalIgnoreCase may be used.

Applies to