共用方式為


WorkflowActivities.ReadGuidProperty 方法

使用 SharePoint SPFieldType.Guid類型來讀取指定的專案屬性的值。

命名空間:  Microsoft.ProjectServer.Client
組件:  Microsoft.ProjectServer.Client (在 Microsoft.ProjectServer.Client.dll 中)

語法

'宣告
<RemoteAttribute> _
Public Function ReadGuidProperty ( _
    projectId As Guid, _
    propertyId As String _
) As ClientResult(Of Guid)
'用途
Dim instance As WorkflowActivities
Dim projectId As Guid
Dim propertyId As String
Dim returnValue As ClientResult(Of Guid)

returnValue = instance.ReadGuidProperty(projectId, _
    propertyId)
[RemoteAttribute]
public ClientResult<Guid> ReadGuidProperty(
    Guid projectId,
    string propertyId
)

參數

傳回值

類型:Microsoft.SharePoint.Client.ClientResult<Guid>
Guid屬性的值。

備註

Project Server 工作流程可以呼叫ReadGuidProperty方法。可以使用WorkflowDesignerField.Id屬性,從WorkflowDesigner.Fields集合擷取有效propertyId值。ReadGuidProperty方法僅適用於其中WorkflowDesignerField.SPFieldType屬性是SPFieldType.Guid的欄位。

請參閱

參照

WorkflowActivities 類別

WorkflowActivities 成員

Microsoft.ProjectServer.Client 命名空間