MethodExpression.IgnoreIfNotFound 属性

定义

获取或设置一个值,该值指示是否应忽略表达式。Gets or sets a value that indicates whether the expression should be ignored.

public:
 property bool IgnoreIfNotFound { bool get(); void set(bool value); };
public bool IgnoreIfNotFound { get; set; }
member this.IgnoreIfNotFound : bool with get, set
Public Property IgnoreIfNotFound As Boolean

属性值

Boolean

如果忽略表达式,则该值为 true;否则为 falsetrue if the expression is ignored; otherwise, false.

注解

MethodExpression对象通过查找特定位置并按特定顺序进行搜索来搜索包含该查询的方法。The MethodExpression object searches for a method that contains the query by looking in specific locations and searching in a specific order. 如果对象找不到包含 LINQ 的方法,则可以将此属性设置为 false 以引发异常 CustomExpressionYou can set this property to false to throw an exception if the CustomExpression object does not find a method that contains a LINQ.

适用于