DbLikeExpression.Pattern Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets an expression that specifies the pattern against which the given string should be compared.

Namespace:   System.Data.Common.CommandTrees
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public DbExpression Pattern { get; }

Property Value

Type: System.Data.Common.CommandTrees.DbExpression

An expression that specifies the pattern against which the given string should be compared.

Exception Condition
ArgumentNullException

The expression is null.

ArgumentException

The expression is not associated with the command tree of DbLikeExpression, or its result type is not a string type.

.NET Framework
Available since 3.5
Return to top
Show: