次の方法で共有


IPSWorkflowService.CompareProjectProperty Method

Compares the value of the specified project property with the supplied value.

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

Syntax

'Declaration
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 IPSWorkflowService
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)
CompareProjectPropertyResult CompareProjectProperty(
    ProjectWorkflowContext workflowContext,
    string propertyName,
    Guid mdPropUid,
    ProjectPropertyCompareOperator compareOperator,
    string textPropertyValue,
    decimal numericPropertyValue,
    DateTime dateTimePropertyValue,
    string durationPropertyValue,
    bool flagPropertyValue,
    Guid codePropertyValue
)

Parameters

  • propertyName
    Type: System.String
    The 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.Guid
    The GUID of the custom field to be compared.
  • textPropertyValue
    Type: System.String
    The text value that is used in the comparison. If the property is not a text value, textPropertyValue is ignored.
  • numericPropertyValue
    Type: System.Decimal
    The numeric value that is used in the comparison. If the property is not a numeric value, numericPropertyValue is ignored.
  • dateTimePropertyValue
    Type: System.DateTime
    The DateTime value that is used in the comparison. If the property is not a DateTime value, dateTimePropertyValue is ignored.
  • durationPropertyValue
    Type: System.String
    The duration value that is used in the comparison. If the property is not a duration value, durationPropertyValue is ignored.
  • flagPropertyValue
    Type: System.Boolean
    A Boolean value that is used in the comparison. If the property is not a Boolean value, flagPropertyValue is ignored.
  • codePropertyValue
    Type: System.Guid
    A 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.

Remarks

The comparison is based on the type of the specified project property.

See Also

Reference

IPSWorkflowService Interface

IPSWorkflowService Members

Microsoft.Office.Project.Server.Library Namespace