SqlMethods.Like Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Determines whether a specific character string matches a specified pattern. This method is currently only supported in LINQ to SQL queries.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic memberSupported by Silverlight for Windows Phone Like(String, String) Determines whether a specific character string matches a specified pattern. This method is currently only supported in LINQ to SQL queries.
Public methodStatic memberSupported by Silverlight for Windows Phone Like(String, String, Char) Determines whether a specific character string matches a specified pattern. This method is currently only supported in LINQ to SQL queries.

Top

Remarks

The SQL Server LIKE functionality cannot be exposed through translation of existing common language runtime (CLR) and .NET Framework constructs, and is unsupported outside of a LINQ to SQL context. The use of this method outside of LINQ to SQL will always throw an exception of type NotSupportedException.