SqlCeFunctions.PatIndex Method (String, String)
Returns the starting position of the first occurrence of a pattern in a specified expression, or zeros if the pattern is not found, on all valid text and character data types.
Assembly: EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "target")] [SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringPattern")] [DbFunctionAttribute("SqlServerCe", "PATINDEX")] public static Nullable<int> PatIndex( string stringPattern, string target )
Parameters
- stringPattern
-
Type:
System.String
A string pattern to search for.
- target
-
Type:
System.String
The string to search.
Return Value
Type: System.Nullable<Int32>The starting character position where the string pattern was found.