DbLikeExpression.Pattern Property

Definition

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

public:
 property System::Data::Common::CommandTrees::DbExpression ^ Pattern { System::Data::Common::CommandTrees::DbExpression ^ get(); };
public System.Data.Common.CommandTrees.DbExpression Pattern { get; }
member this.Pattern : System.Data.Common.CommandTrees.DbExpression
Public ReadOnly Property Pattern As DbExpression

Property Value

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

Exceptions

The expression is null.

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

Applies to