OfficeTask.ContentTypeId property
Returns the value of the ContentTypeId property of the task.
Namespace: Microsoft.Office.Workflow.Actions
Assembly: Microsoft.Office.Workflow.Actions (in Microsoft.Office.Workflow.Actions.dll)
Syntax
'Declaration
<ValidationOptionAttribute(ValidationOption.Optional)> _
Public Property ContentTypeId As String
Get
Set
'Usage
Dim instance As OfficeTask
Dim value As String
value = instance.ContentTypeId
instance.ContentTypeId = value
[ValidationOptionAttribute(ValidationOption.Optional)]
public string ContentTypeId { get; set; }
Property value
Type: System.String
The content type ID.
Remarks
If this property is not null or empty, the task process will create tasks of this content type. That content type or a child content type must be present on the task list of the workflow. If not set, the workflow will use the value of the SPWorkflowAssociation.TaskListContentTypeId property.