Returns a copy of the current item.
Namespace: Microsoft.ResourceManagement.Workflow.Activities
Assembly: Microsoft.ResourceManagement (in microsoft.resourcemanagement.dll)

Usage

Visual Basic
Dim dependencyObject As DependencyObject
Dim returnValue As Object

returnValue = EnumerateResourcesActivity.GetCurrentIterationItem(dependencyObject)

Syntax

Visual Basic
Public Shared Function GetCurrentIterationItem ( _
		dependencyObject As DependencyObject _
) As Object
C#
public static Object GetCurrentIterationItem (
		DependencyObject dependencyObject
)
C++
public:
static Object^ GetCurrentIterationItem (
		DependencyObject^ dependencyObject
)
J#
public static Object GetCurrentIterationItem (
		DependencyObject dependencyObject
)
JScript
public static function GetCurrentIterationItem (
		dependencyObject : DependencyObject
) : Object

Parameters

dependencyObject

A DependencyObject.

Return Value

A Object that represents the current item.

Example

The following example returns the current item from the query results.

C#  Copy Code
ResourceType result = EnumerateResourcesActivity.GetCurrentIterationItem((CodeActivity)sender) as ResourceType;

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

Windows 2008 x64 Edition

Change History

See Also