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
)
パラメーター
workflowContext
型: Microsoft.Office.Project.Server.Library.ProjectWorkflowContext現在処理されているワークフローのインスタンスに関連する情報です。
propertyName
型: System.Stringプロジェクトを設定するプロパティの名前。mdPropUidはnull 参照 (Visual Basic のNothing )ではありませんが空でない場合は、 propertyNameは無視されます。
mdPropUid
型: System.Guidユーザー設定フィールドの GUID。
textPropertyValue
型: System.Stringテキストの値を設定します。プロパティのテキスト値が、 textPropertyValueは無視されます。
numericPropertyValue
型: System.Decimal設定する数値です。プロパティが数値でない場合、 numericPropertyValueは無視されます。
dateTimePropertyValue
型: System.DateTimeDateTimeの値を設定します。プロパティが、 DateTime 、 dateTimePropertyValueは無視されます。
durationPropertyValue
型: System.String期間の値を設定します。プロパティは、期間の値は、 durationPropertyValueは無視されます。
flagPropertyValue
型: System.BooleanBoolean値を設定します。プロパティが、 Boolean 、 flagPropertyValueは無視されます。
codePropertyValue
型: System.Guidコードの値をルックアップ テーブルには、選択範囲の GUID) を設定します。プロパティがない場合、コードの値、 codePropertyValueは無視されます。
deleteValue
型: System.Booleanユーザー設定フィールドの値を削除するかどうかを指定します (trueを削除します。 それ以外の場合、 false)。
jobUid
型: System.Guidキュー ジョブの GUID。