共用方式為


SqliteConnection.CreateCollation 方法

定義

多載

CreateCollation(String, Comparison<String>)

建立自訂定序。

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

建立自訂定序。

CreateCollation(String, Comparison<String>)

建立自訂定序。

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))

參數

name
String

定序的名稱。

comparison
Comparison<String>

比較兩個字串的方法。

適用於

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

建立自訂定序。

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))

類型參數

T

狀態物件的型別。

參數

name
String

定序的名稱。

state
T

傳遞至定序之每個調用的狀態物件。

comparison
Func<T,String,String,Int32>

使用其他狀態比較兩個字串的方法。

適用於