語言

SqlCeFunctions.CharIndex 方法

定義

多載

名稱 Description
CharIndex(Byte[], Byte[])

回傳一個表達式在另一個表達式中起始位置。

CharIndex(String, String)

回傳一個表達式在另一個表達式中起始位置。

CharIndex(Byte[], Byte[], Nullable<Int32>)

回傳一個表達式在另一個表達式中起始位置。

CharIndex(Byte[], Byte[], Nullable<Int64>)

回傳一個表達式在另一個表達式中起始位置。

CharIndex(String, String, Nullable<Int32>)

回傳一個表達式在另一個表達式中起始位置。

CharIndex(String, String, Nullable<Int64>)

回傳一個表達式在另一個表達式中起始位置。

CharIndex(Byte[], Byte[])

回傳一個表達式在另一個表達式中起始位置。

[System.Data.Entity.DbFunction("SqlServerCe", "CHARINDEX")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toFind")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toSearch")]
public static Nullable<int> CharIndex(byte[] toFind, byte[] toSearch);
static member CharIndex : byte[] * byte[] -> Nullable<int>
Public Shared Function CharIndex (toFind As Byte(), toSearch As Byte()) As Nullable(Of Integer)

參數

toFind
Byte[]

要找到的字串表達式。

toSearch
Byte[]

要搜尋的字串表達式。

傳回

如果 toFind 在 toSearch 中,則為 toFind 的起始位置。

屬性

適用於

CharIndex(String, String)

回傳一個表達式在另一個表達式中起始位置。

[System.Data.Entity.DbFunction("SqlServerCe", "CHARINDEX")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toFind")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toSearch")]
public static Nullable<int> CharIndex(string toFind, string toSearch);
static member CharIndex : string * string -> Nullable<int>
Public Shared Function CharIndex (toFind As String, toSearch As String) As Nullable(Of Integer)

參數

toFind
String

要找到的字串表達式。

toSearch
String

要搜尋的字串表達式。

傳回

如果 toFind 在 toSearch 中,則為 toFind 的起始位置。

屬性

適用於

CharIndex(Byte[], Byte[], Nullable<Int32>)

回傳一個表達式在另一個表達式中起始位置。

[System.Data.Entity.DbFunction("SqlServerCe", "CHARINDEX")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toFind")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="startLocation")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toSearch")]
public static Nullable<int> CharIndex(byte[] toFind, byte[] toSearch, Nullable<int> startLocation);
static member CharIndex : byte[] * byte[] * Nullable<int> -> Nullable<int>
Public Shared Function CharIndex (toFind As Byte(), toSearch As Byte(), startLocation As Nullable(Of Integer)) As Nullable(Of Integer)

參數

toFind
Byte[]

要找到的字串表達式。

toSearch
Byte[]

要搜尋的字串表達式。

startLocation
Nullable<Int32>

搜尋開始的 toSearch 角色位置。

傳回

如果 toFind 在 toSearch 中,則為 toFind 的起始位置。

屬性

適用於

CharIndex(Byte[], Byte[], Nullable<Int64>)

回傳一個表達式在另一個表達式中起始位置。

[System.Data.Entity.DbFunction("SqlServerCe", "CHARINDEX")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toSearch")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="startLocation")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toFind")]
public static Nullable<long> CharIndex(byte[] toFind, byte[] toSearch, Nullable<long> startLocation);
static member CharIndex : byte[] * byte[] * Nullable<int64> -> Nullable<int64>
Public Shared Function CharIndex (toFind As Byte(), toSearch As Byte(), startLocation As Nullable(Of Long)) As Nullable(Of Long)

參數

toFind
Byte[]

要找到的字串表達式。

toSearch
Byte[]

要搜尋的字串表達式。

startLocation
Nullable<Int64>

搜尋開始的 toSearch 角色位置。

傳回

如果 toFind 在 toSearch 中,則為 toFind 的起始位置。

屬性

適用於

CharIndex(String, String, Nullable<Int32>)

回傳一個表達式在另一個表達式中起始位置。

[System.Data.Entity.DbFunction("SqlServerCe", "CHARINDEX")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toFind")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toSearch")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="startLocation")]
public static Nullable<int> CharIndex(string toFind, string toSearch, Nullable<int> startLocation);
static member CharIndex : string * string * Nullable<int> -> Nullable<int>
Public Shared Function CharIndex (toFind As String, toSearch As String, startLocation As Nullable(Of Integer)) As Nullable(Of Integer)

參數

toFind
String

要找到的字串表達式。

toSearch
String

要搜尋的字串表達式。

startLocation
Nullable<Int32>

搜尋開始的 toSearch 角色位置。

傳回

如果 toFind 在 toSearch 中,則為 toFind 的起始位置。

屬性

適用於

CharIndex(String, String, Nullable<Int64>)

回傳一個表達式在另一個表達式中起始位置。

[System.Data.Entity.DbFunction("SqlServerCe", "CHARINDEX")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toSearch")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toFind")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="startLocation")]
public static Nullable<long> CharIndex(string toFind, string toSearch, Nullable<long> startLocation);
static member CharIndex : string * string * Nullable<int64> -> Nullable<int64>
Public Shared Function CharIndex (toFind As String, toSearch As String, startLocation As Nullable(Of Long)) As Nullable(Of Long)

參數

toFind
String

要找到的字串表達式。

toSearch
String

要搜尋的字串表達式。

startLocation
Nullable<Int64>

搜尋開始的 toSearch 角色位置。

傳回

Nullable<T> A 值Int64為 toFind 的起始位置,若在 toSearch 中找到。

屬性

適用於