NativeActivityContext.CreateBookmark Method (String, BookmarkCallback, BookmarkOptions)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates the point at which a NativeActivity can passively wait to be resumed with the specified name, the specified method to execute when notification of the resume operation completes, and the specified option that governs how the bookmark is used during the execution of the current NativeActivity.

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

public Bookmark CreateBookmark(
	string name,
	BookmarkCallback callback,
	BookmarkOptions options
)

Parameters

name
Type: System.String

The name of the bookmark.

callback
Type: System.Activities.BookmarkCallback

The method to be called when a notification signals resumption of the NativeActivity.

options
Type: System.Activities.BookmarkOptions

The bookmark options that govern how the bookmark is used during the execution of the current NativeActivity.

Return Value

Type: System.Activities.Bookmark

A bookmark that includes the name of the bookmark, the callback method, and the bookmark execution option.

Bookmark callbacks can operate without bookmark options but bookmark options must always be paired with a callback because the options do not apply in situations where there is no callback method.

.NET Framework
Available since 4.0
Return to top
Show: