Language

SqlFunctions.CharIndex メソッド

定義

オーバーロード

Name 説明
CharIndex(String, String, Nullable<Int64>)

別の式内にある 1 つの式の開始位置を返します。

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

別の式内にある 1 つの式の開始位置を返します。

CharIndex(String, String, Nullable<Int32>)

別の式内にある 1 つの式の開始位置を返します。

CharIndex(String, String)

別の式内にある 1 つの式の開始位置を返します。

CharIndex(Byte[], Byte[])

別の式内にある 1 つの式の開始位置を返します。

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

別の式内にある 1 つの式の開始位置を返します。

CharIndex(String, String, Nullable<Int64>)

別の式内にある 1 つの式の開始位置を返します。

[System.Data.Entity.DbFunction("SqlServer", "CHARINDEX")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="startLocation")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toSearch")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toFind")]
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 内の文字位置。

戻り値

toSearch で見つかった場合の toFind の開始位置Int64値のNullable<T>。

属性

適用対象

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

別の式内にある 1 つの式の開始位置を返します。

[System.Data.Entity.DbFunction("SqlServer", "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 内の文字位置。

戻り値

toSearch で見つかった場合の toFind の開始位置。

属性

適用対象

CharIndex(String, String, Nullable<Int32>)

別の式内にある 1 つの式の開始位置を返します。

[System.Data.Entity.DbFunction("SqlServer", "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 内の文字位置。

戻り値

toSearch で見つかった場合の toFind の開始位置。

属性

適用対象

CharIndex(String, String)

別の式内にある 1 つの式の開始位置を返します。

[System.Data.Entity.DbFunction("SqlServer", "CHARINDEX")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toSearch")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="toFind")]
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

検索する文字列式。

戻り値

toSearch で見つかった場合の toFind の開始位置。

属性

適用対象

CharIndex(Byte[], Byte[])

別の式内にある 1 つの式の開始位置を返します。

[System.Data.Entity.DbFunction("SqlServer", "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[]

検索する文字列式。

戻り値

toSearch で見つかった場合の toFind の開始位置。

属性

適用対象

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

別の式内にある 1 つの式の開始位置を返します。

[System.Data.Entity.DbFunction("SqlServer", "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<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 内の文字位置。

戻り値

toSearch で見つかった場合の toFind の開始位置。

属性

適用対象