NativeActivityContext.RemoveBookmark 方法

定义

从当前正在执行的 NativeActivity 实例中移除书签。Removes a bookmark from the currently executing NativeActivity instance.

重载

RemoveBookmark(Bookmark)

从当前正在执行的 NativeActivity 实例中移除指定书签。Removes the specified bookmark from the currently executing NativeActivity instance.

RemoveBookmark(String)

移除具有指定名称的书签。Removes the bookmark with the specified name.

RemoveBookmark(String, BookmarkScope)

移除具有指定名称和指定书签范围的书签。Removes the bookmark with the specified name and the specified bookmark scope.

RemoveBookmark(Bookmark)

从当前正在执行的 NativeActivity 实例中移除指定书签。Removes the specified bookmark from the currently executing NativeActivity instance.

public:
 bool RemoveBookmark(System::Activities::Bookmark ^ bookmark);
public bool RemoveBookmark (System.Activities.Bookmark bookmark);
member this.RemoveBookmark : System.Activities.Bookmark -> bool
Public Function RemoveBookmark (bookmark As Bookmark) As Boolean

参数

bookmark
Bookmark

NativeActivity 实例可以被动等待恢复的点。A point at which a NativeActivity instance can passively wait to be resumed.

返回

Boolean

如果移除了书签,则为 true;否则为 falsetrue if the bookmark was removed; otherwise, false.

适用于

RemoveBookmark(String)

移除具有指定名称的书签。Removes the bookmark with the specified name.

public:
 bool RemoveBookmark(System::String ^ name);
public bool RemoveBookmark (string name);
member this.RemoveBookmark : string -> bool
Public Function RemoveBookmark (name As String) As Boolean

参数

name
String

书签的名称。The name of the bookmark.

返回

Boolean

如果移除了书签,则为 true;否则为 falsetrue if the bookmark was removed; otherwise, false.

适用于

RemoveBookmark(String, BookmarkScope)

移除具有指定名称和指定书签范围的书签。Removes the bookmark with the specified name and the specified bookmark scope.

public:
 bool RemoveBookmark(System::String ^ name, System::Activities::BookmarkScope ^ scope);
public bool RemoveBookmark (string name, System.Activities.BookmarkScope scope);
member this.RemoveBookmark : string * System.Activities.BookmarkScope -> bool
Public Function RemoveBookmark (name As String, scope As BookmarkScope) As Boolean

参数

name
String

书签的名称。The name of the bookmark.

scope
BookmarkScope

在同一协议下运行的一组 Bookmark 对象的唯一 GUID 标识符。The unique GUID identifier for a group of Bookmark objects that are categorized as operating under the same protocol.

返回

Boolean

如果移除了书签,则为 true;否则为 falsetrue if the bookmark was removed; otherwise, false.

适用于