SqliteConnection.CreateCollation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
傳遞至定序之每個調用的狀態物件。