BookmarkOptions BookmarkOptions BookmarkOptions BookmarkOptions Enum

定义

Bookmark 指定选项。Specifies the options for a Bookmark.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class BookmarkOptions
[System.Flags]
public enum BookmarkOptions
type BookmarkOptions = 
Public Enum BookmarkOptions
继承
BookmarkOptionsBookmarkOptionsBookmarkOptionsBookmarkOptions
属性

字段

MultipleResume MultipleResume MultipleResume MultipleResume 1

可多次恢复的 BookmarkA Bookmark that can be resumed multiple times.

NonBlocking NonBlocking NonBlocking NonBlocking 2

不会阻止工作流的 BookmarkA Bookmark that does not block the workflow.

None None None None 0

默认 Bookmark 选项。Default Bookmark options,

注解

默认情况下,当恢复书签时,工作流运行时会将挂起的书签从其书签表中移除。By default, the workflow runtime removes a pending bookmark from its bookmarks table when resuming the bookmark. 但是, 如果将书签指定为MultipleResume, 则不会从表中删除书签, 同一书签可以恢复多次。However if the bookmark is specified as MultipleResume, the bookmark is not removed from the table, and the same bookmark can be resumed multiple times. 例如,通过循环活动(如 MultipleResumeSystem.Activities.Statements.WhileSystem.Activities.Statements.ForEach<T> 使用 System.Activities.Statements.FlowchartAn example usage of MultipleResume is by looping activities such as System.Activities.Statements.While, System.Activities.Statements.ForEach<T>, and System.Activities.Statements.Flowchart.

默认情况下,如果某个活动具有挂起的书签,则工作流运行时不会将该活动视为已完成执行。By default, the workflow runtime does not consider an activity to have completed execution if it has pending bookmarks. 但是, 如果在创建时将书签NonBlocking指定为, 则工作流运行时允许活动完成执行 (即使它具有挂起NonBlocking的书签), 前提是它没有其他挂起的工作。However, if a bookmark is specified as NonBlocking at creation time, the workflow runtime allows the activity to complete execution even if it has pending NonBlocking bookmarks, provided it has no other pending work.

适用于