WorkflowActivities.ReadBooleanProperty method
Reads the value of the specified project property by using the SharePoint SPFieldType.Boolean type.
Namespace: Microsoft.ProjectServer.Client
Assembly: Microsoft.ProjectServer.Client (in Microsoft.ProjectServer.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Function ReadBooleanProperty ( _
projectId As Guid, _
propertyId As String _
) As ClientResult(Of Boolean)
'Usage
Dim instance As WorkflowActivities
Dim projectId As Guid
Dim propertyId As String
Dim returnValue As ClientResult(Of Boolean)
returnValue = instance.ReadBooleanProperty(projectId, _
propertyId)
[RemoteAttribute]
public ClientResult<bool> ReadBooleanProperty(
Guid projectId,
string propertyId
)
Parameters
projectId
Type: System.GuidThe GUID of the project.
propertyId
Type: System.StringThe GUID of the property to read.
Return value
Type: Microsoft.SharePoint.Client.ClientResult<Boolean>
The Boolean value of the property.
Remarks
A Project Server workflow can call the ReadBooleanProperty method. Valid propertyId values can be retrieved from the WorkflowDesigner.Fields collection by using the WorkflowDesignerField.Id property. The ReadBooleanProperty method works only with fields where the WorkflowDesignerField.SPFieldType property is SPFieldType.Boolean.