PSWorkflowService.CompareProjectProperty method
Compares the value of the specified project property with the supplied value.
Namespace: Microsoft.Office.Project.Server.Workflow
Assembly: Microsoft.Office.Project.Server.Workflow (in Microsoft.Office.Project.Server.Workflow.dll)
Syntax
'Declaration
Public Function CompareProjectProperty ( _
workflowContext As ProjectWorkflowContext, _
propertyName As String, _
mdPropUid As Guid, _
compareOperator As ProjectPropertyCompareOperator, _
textPropertyValue As String, _
numericPropertyValue As Decimal, _
dateTimePropertyValue As DateTime, _
durationPropertyValue As String, _
flagPropertyValue As Boolean, _
codePropertyValue As Guid _
) As CompareProjectPropertyResult
'Usage
Dim instance As PSWorkflowService
Dim workflowContext As ProjectWorkflowContext
Dim propertyName As String
Dim mdPropUid As Guid
Dim compareOperator As ProjectPropertyCompareOperator
Dim textPropertyValue As String
Dim numericPropertyValue As Decimal
Dim dateTimePropertyValue As DateTime
Dim durationPropertyValue As String
Dim flagPropertyValue As Boolean
Dim codePropertyValue As Guid
Dim returnValue As CompareProjectPropertyResult
returnValue = instance.CompareProjectProperty(workflowContext, _
propertyName, mdPropUid, compareOperator, _
textPropertyValue, numericPropertyValue, _
dateTimePropertyValue, durationPropertyValue, _
flagPropertyValue, codePropertyValue)
public CompareProjectPropertyResult CompareProjectProperty(
ProjectWorkflowContext workflowContext,
string propertyName,
Guid mdPropUid,
ProjectPropertyCompareOperator compareOperator,
string textPropertyValue,
decimal numericPropertyValue,
DateTime dateTimePropertyValue,
string durationPropertyValue,
bool flagPropertyValue,
Guid codePropertyValue
)
Parameters
workflowContext
Type: Microsoft.Office.Project.Server.Library.ProjectWorkflowContextInformation that is related to the current instance of the workflow that is being processed.
propertyName
Type: System.StringThe name of the project property. If mdPropUid is not a null reference (Nothing in Visual Basic) and is not empty, propertyName is ignored.
mdPropUid
Type: System.GuidThe GUID of the custom field to be compared.
compareOperator
Type: Microsoft.Office.Project.Server.Library.ProjectPropertyCompareOperatorThe comparison operation to be performed, specified by a ProjectPropertyCompareOperator constant.
textPropertyValue
Type: System.StringThe text value that is used in the comparison. If the property is not a text value, textPropertyValue is ignored.
numericPropertyValue
Type: System.DecimalThe numeric value that is used in the comparison. If the property is not a numeric value, numericPropertyValue is ignored.
dateTimePropertyValue
Type: System.DateTimeThe DateTime value that is used in the comparison. If the property is not a DateTime value, dateTimePropertyValue is ignored.
durationPropertyValue
Type: System.StringThe duration value that is used in the comparison. If the property is not a duration value, durationPropertyValue is ignored.
flagPropertyValue
Type: System.BooleanA Boolean value that is used in the comparison. If the property is not a Boolean value, flagPropertyValue is ignored.
codePropertyValue
Type: System.GuidA code value (such as the GUID of a selection in a lookup table) that is used in the comparison. If the property is not a code value, codePropertyValue is ignored.
Return value
Type: Microsoft.Office.Project.Server.Library.CompareProjectPropertyResult
The result of the comparison operation.
Implements
Remarks
The comparison is based on the type of the specified project property.