次の方法で共有


PSWorkflowService.SetProjectProperty メソッド

指定したユーザー設定フィールド Project Server ワークフローのプロパティを更新します。

名前空間:  Microsoft.Office.Project.Server.Workflow
アセンブリ:  Microsoft.Office.Project.Server.Workflow (Microsoft.Office.Project.Server.Workflow.dll 内)

構文

'宣言
Public 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 _
)
'使用
Dim instance As PSWorkflowService
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)
public void SetProjectProperty(
    ProjectWorkflowContext workflowContext,
    string propertyName,
    Guid mdPropUid,
    string textPropertyValue,
    decimal numericPropertyValue,
    DateTime dateTimePropertyValue,
    string durationPropertyValue,
    bool flagPropertyValue,
    Guid codePropertyValue,
    bool deleteValue,
    Guid jobUid
)

パラメーター

  • propertyName
    型: System.String

    プロジェクトを設定するプロパティの名前。mdPropUidはnull 参照 (Visual Basic のNothing )ではありませんが空でない場合は、 propertyNameは無視されます。

  • mdPropUid
    型: System.Guid

    ユーザー設定フィールドの GUID。

  • textPropertyValue
    型: System.String

    テキストの値を設定します。プロパティのテキスト値が、 textPropertyValueは無視されます。

  • numericPropertyValue
    型: System.Decimal

    設定する数値です。プロパティが数値でない場合、 numericPropertyValueは無視されます。

  • dateTimePropertyValue
    型: System.DateTime

    DateTimeの値を設定します。プロパティが、 DateTime 、 dateTimePropertyValueは無視されます。

  • durationPropertyValue
    型: System.String

    期間の値を設定します。プロパティは、期間の値は、 durationPropertyValueは無視されます。

  • flagPropertyValue
    型: System.Boolean

    Boolean値を設定します。プロパティが、 Boolean 、 flagPropertyValueは無視されます。

  • codePropertyValue
    型: System.Guid

    コードの値をルックアップ テーブルには、選択範囲の GUID) を設定します。プロパティがない場合、コードの値、 codePropertyValueは無視されます。

  • deleteValue
    型: System.Boolean

    ユーザー設定フィールドの値を削除するかどうかを指定します (trueを削除します。 それ以外の場合、 false)。

  • jobUid
    型: System.Guid

    キュー ジョブの GUID。

実装

IPSWorkflowService.SetProjectProperty(ProjectWorkflowContext, String, Guid, String, Decimal, DateTime, String, Boolean, Guid, Boolean, Guid)

関連項目

参照先

PSWorkflowService クラス

PSWorkflowService メンバー

Microsoft.Office.Project.Server.Workflow 名前空間