EnumerationOptions.ReturnImmediately 属性

定义

获取或设置一个值,该值指示调用的操作应以同步方式或半同步方式执行。Gets or sets a value indicating whether the invoked operation should be performed in a synchronous or semisynchronous fashion. 如果此属性设置为 true,则会调用枚举,并且调用会立即返回。If this property is set to true, the enumeration is invoked and the call returns immediately. 遍历结果集合后,将出现实际的检索结果。The actual retrieval of the results will occur when the resulting collection is walked.

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

属性值

true如果调用的操作应以同步或半同步方式执行, 则为; 否则为。否则为falsetrue if the invoked operation should be performed in a synchronous or semisynchronous fashion; otherwise, false.

注解

属性值Property Value

true如果调用的操作应以同步或半同步方式执行, 则为; 否则为。否则为falsetrue if the invoked operation should be performed in a synchronous or semisynchronous fashion; otherwise, false. 默认值为 trueThe default value is true.

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息, 请参阅从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

适用于