ExclusiveHandle.RegisterBookmarkScope(NativeActivityContext, BookmarkScopeHandle) 方法
定义
使用指定的上下文将指定书签范围句柄添加到 ReadOnlyCollection<T> 对象的 BookmarkScopeHandle。Adds the specified bookmark scope handle to the ReadOnlyCollection<T> of BookmarkScopeHandle objects using the specified context.
public:
void RegisterBookmarkScope(System::Activities::NativeActivityContext ^ context, System::Activities::BookmarkScopeHandle ^ bookmarkScopeHandle);
public void RegisterBookmarkScope (System.Activities.NativeActivityContext context, System.Activities.BookmarkScopeHandle bookmarkScopeHandle);
member this.RegisterBookmarkScope : System.Activities.NativeActivityContext * System.Activities.BookmarkScopeHandle -> unit
Public Sub RegisterBookmarkScope (context As NativeActivityContext, bookmarkScopeHandle As BookmarkScopeHandle)
参数
- context
- NativeActivityContext
在其中创建句柄的环境。The environment in which the handle is created.
- bookmarkScopeHandle
- BookmarkScopeHandle
用于标识和访问在工作流活动操作中于同一协议下运行的一组书签的令牌。The token used to identify and access a group of bookmarks that operate under the same protocol in a workflow activity operation.
注解
如果是在此独占范围内创建书签后调用此方法,将会引发 InvalidOperationException。If this method is called after a bookmark has been created under this exclusive scope, a InvalidOperationException will be thrown.