共用方式為


SqlFunctions.Difference(String, String) 方法

定義

傳回整數值,這個值會指出兩個字元運算式的 SOUNDEX 值間的差異。

[System.Data.Entity.DbFunction("SqlServer", "DIFFERENCE")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="string2")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId="string")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="string1")]
public static Nullable<int> Difference(string string1, string string2);
static member Difference : string * string -> Nullable<int>
Public Shared Function Difference (string1 As String, string2 As String) As Nullable(Of Integer)

參數

string1
String

第一個字串。

string2
String

第二個字串。

傳回

兩數字串間的 SOUNDEX 差異。

屬性

適用於