ContainsBookmark Method

MS Activities Extensions

Collapse imageExpand ImageCopy imageCopyHover image
Extension method which determines if the bookmark collection contains a bookmark with the bookmark name

Namespace: Microsoft.Activities.Extensions
Assembly: Microsoft.Activities.Extensions (in Microsoft.Activities.Extensions.dll) Version: 2.0.6.9 (2.0.6.9)

Syntax

C#
public static bool ContainsBookmark(
	this WorkflowApplicationIdleEventArgs args,
	string bookmarkName
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function ContainsBookmark ( _
	args As WorkflowApplicationIdleEventArgs, _
	bookmarkName As String _
) As Boolean
Visual C++
public:
[ExtensionAttribute]
static bool ContainsBookmark(
	WorkflowApplicationIdleEventArgs^ args, 
	String^ bookmarkName
)

Parameters

args
Type: System.Activities..::..WorkflowApplicationIdleEventArgs
The idle event args.
bookmarkName
Type: System..::..String
The bookmark name.

Return Value

true if there is a bookmark with bookmarkName

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WorkflowApplicationIdleEventArgs. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

The WorkflowApplicationIdleEventArgs.Bookmarks property contains a ReadOnlyCollection<BookmarkInfo> which means you cannot use the Linq method Contains to test for a bookmark name. This method allows you to test for the presence of a bookmark by name

See Also