次の方法で共有


IPSWorkflowService.SetProjectProperty Method

Updates the specified custom field property of the Project Server workflow.

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

Syntax

'Declaration
Sub SetProjectProperty ( _
    workflowContext As ProjectWorkflowContext, _
    propertyName As String, _
    mdPropUid As Guid, _
    textPropertyValue As String, _
    numericPropertyValue As Decimal, _
    dateTimePropertyValue As DateTime, _
    durationPropertyValue As String, _
    flagPropertyValue As Boolean, _
    codePropertyValue As Guid, _
    deleteValue As Boolean, _
    jobUid As Guid _
)
'Usage
Dim instance As IPSWorkflowService
Dim workflowContext As ProjectWorkflowContext
Dim propertyName As String
Dim mdPropUid As Guid
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 deleteValue As Boolean
Dim jobUid As Guid

instance.SetProjectProperty(workflowContext, _
    propertyName, mdPropUid, textPropertyValue, _
    numericPropertyValue, dateTimePropertyValue, _
    durationPropertyValue, flagPropertyValue, _
    codePropertyValue, deleteValue, _
    jobUid)
void SetProjectProperty(
    ProjectWorkflowContext workflowContext,
    string propertyName,
    Guid mdPropUid,
    string textPropertyValue,
    decimal numericPropertyValue,
    DateTime dateTimePropertyValue,
    string durationPropertyValue,
    bool flagPropertyValue,
    Guid codePropertyValue,
    bool deleteValue,
    Guid jobUid
)

Parameters

  • propertyName
    Type: System.String
    The name of the project property to be set. If mdPropUid is not a null reference (Nothing in Visual Basic) and is not empty, propertyName is ignored.
  • mdPropUid
    Type: System.Guid
    GUID of the custom field.
  • textPropertyValue
    Type: System.String
    The text value to be set. If the property is not a text value, textPropertyValue is ignored.
  • numericPropertyValue
    Type: System.Decimal
    The numeric value to be set. If the property is not a numeric value, numericPropertyValue is ignored.
  • dateTimePropertyValue
    Type: System.DateTime
    The DateTime value to be set. If the property is not a DateTime value, dateTimePropertyValue is ignored.
  • durationPropertyValue
    Type: System.String
    The duration value to be set. If the property is not a duration value, durationPropertyValue is ignored.
  • flagPropertyValue
    Type: System.Boolean
    A Boolean value to be set. 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) to be set. If the property is not a code value, codePropertyValue is ignored.
  • deleteValue
    Type: System.Boolean
    Specifies whether to delete the custom field value (true to delete; otherwise, false).

See Also

Reference

IPSWorkflowService Interface

IPSWorkflowService Members

Microsoft.Office.Project.Server.Library Namespace