Share via


CompareProjectProperty Class

The workflow activity that compares the specified project property with another value.

Inheritance Hierarchy

System.Object
  System.Workflow.ComponentModel.DependencyObject
    System.Workflow.ComponentModel.Activity
      Microsoft.Office.Project.Server.Workflow.CompareProjectProperty

Namespace:  Microsoft.Office.Project.Server.Workflow
Assembly:  Microsoft.Office.Project.Server.Workflow (in Microsoft.Office.Project.Server.Workflow.dll)

Syntax

'Declaration
<ToolboxBitmapAttribute(GetType(CompareProjectProperty), "Resources.CompareProjectProperty.bmp")> _
<PersistOnCloseAttribute> _
Public NotInheritable Class CompareProjectProperty _
    Inherits Activity _
    Implements IActivityEventListener(Of QueueEventArgs)
'Usage
Dim instance As CompareProjectProperty
[ToolboxBitmapAttribute(typeof(CompareProjectProperty), "Resources.CompareProjectProperty.bmp")]
[PersistOnCloseAttribute]
public sealed class CompareProjectProperty : Activity, 
    IActivityEventListener<QueueEventArgs>

Remarks

The property comparison is made based on the type of the specified property. The property type can be text, numeric, date-time, duration, or flag (a Boolean value). If the MdPropUid property GUID is specified, the PropertyName value is ignored.

The Workflow Designer pane and the Properties pane in Microsoft Visual Studio 2010 enable you to get and set properties in fields for the CompareProjectProperty activity.

For an example that uses the CompareProjectProperty activity and sets properties for the comparison, see How to: Create a Branching Workflow.

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.

See Also

Reference

CompareProjectProperty Members

Microsoft.Office.Project.Server.Workflow Namespace