Share via


SqliteConnection.CreateCollation Method

Definition

Overloads

CreateCollation(String, Comparison<String>)

Create custom collation.

CreateCollation<T>(String, T, Func<T,String,String,Int32>)

Create custom collation.

CreateCollation(String, Comparison<String>)

Create custom collation.

public virtual void CreateCollation (string name, Comparison<string> comparison);
public virtual void CreateCollation (string name, Comparison<string>? comparison);
abstract member CreateCollation : string * Comparison<string> -> unit
override this.CreateCollation : string * Comparison<string> -> unit
Public Overridable Sub CreateCollation (name As String, comparison As Comparison(Of String))

Parameters

name
String

Name of the collation.

comparison
Comparison<String>

Method that compares two strings.

Applies to

CreateCollation<T>(String, T, Func<T,String,String,Int32>)

Create custom collation.

public virtual void CreateCollation<T> (string name, T state, Func<T,string,string,int> comparison);
public virtual void CreateCollation<T> (string name, T state, Func<T,string,string,int>? comparison);
abstract member CreateCollation : string * 'T * Func<'T, string, string, int> -> unit
override this.CreateCollation : string * 'T * Func<'T, string, string, int> -> unit
Public Overridable Sub CreateCollation(Of T) (name As String, state As T, comparison As Func(Of T, String, String, Integer))

Type Parameters

T

The type of the state object.

Parameters

name
String

Name of the collation.

state
T

State object passed to each invocation of the collation.

comparison
Func<T,String,String,Int32>

Method that compares two strings, using additional state.

Applies to