Share via


WorkflowActivities.ReadTextProperty method

Reads the value of of the specified project property by using the SharePoint SPFieldType.Text type.

Namespace:  Microsoft.ProjectServer.Client
Assembly:  Microsoft.ProjectServer.Client (in Microsoft.ProjectServer.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Function ReadTextProperty ( _
    projectId As Guid, _
    propertyId As String _
) As ClientResult(Of String)
'Usage
Dim instance As WorkflowActivities
Dim projectId As Guid
Dim propertyId As String
Dim returnValue As ClientResult(Of String)

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

Parameters

  • propertyId
    Type: System.String

    The GUID of the property to read.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<String>
The Text value of the property.

Remarks

A Project Server workflow can call the ReadTextProperty method. Valid propertyId values can be retrieved from the WorkflowDesigner.Fields collection by using the WorkflowDesignerField.Id property. The ReadTextProperty method works only with fields where the WorkflowDesignerField.SPFieldType property is SPFieldType.Text.

See also

Reference

WorkflowActivities class

WorkflowActivities members

Microsoft.ProjectServer.Client namespace