WorkflowActivities.ReadDateTimeProperty 方法
使用 SharePoint SPFieldType.DateTime類型來讀取指定的專案屬性的值。
命名空間: Microsoft.ProjectServer.Client
組件: Microsoft.ProjectServer.Client (在 Microsoft.ProjectServer.Client.dll 中)
語法
'宣告
<RemoteAttribute> _
Public Function ReadDateTimeProperty ( _
projectId As Guid, _
propertyId As String _
) As ClientResult(Of DateTime)
'用途
Dim instance As WorkflowActivities
Dim projectId As Guid
Dim propertyId As String
Dim returnValue As ClientResult(Of DateTime)
returnValue = instance.ReadDateTimeProperty(projectId, _
propertyId)
[RemoteAttribute]
public ClientResult<DateTime> ReadDateTimeProperty(
Guid projectId,
string propertyId
)
參數
projectId
類型:System.Guid專案的 GUID。
propertyId
類型:System.String讀取屬性的 GUID。
傳回值
類型:Microsoft.SharePoint.Client.ClientResult<DateTime>
DateTime屬性的值。
備註
Project Server 工作流程可以呼叫ReadDateTimeProperty方法。可以使用WorkflowDesignerField.Id屬性,從WorkflowDesigner.Fields集合擷取有效propertyId值。ReadDateTimeProperty方法僅適用於其中WorkflowDesignerField.SPFieldType屬性是SPFieldType.DateTime的欄位。