共用方式為


CreateTaskWithContentType.ContentTypeId Property

The identity of the SPContentType property that is associated with the task list item.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

Syntax

'Declaration
<ValidationOptionAttribute(ValidationOption.Required)> _
Public Property ContentTypeId As String
    Get
    Set
'Usage
Dim instance As CreateTaskWithContentType
Dim value As String

value = instance.ContentTypeId

instance.ContentTypeId = value
[ValidationOptionAttribute(ValidationOption.Required)]
public string ContentTypeId { get; set; }

Property Value

Type: System.String
The Content Type IDs property that is associated with the task list item.

Remarks

Content type identifiers (IDs) are unique IDs that are expressed in hexadecimal format. They are structured in a way that allows the ID to contain unique information about itself, and also its hierarchical relationships. When you view the child content type, you can determine from which parent content type it is derived.

The ContentTypeId that is specified for this activity can be either one of the built-in content types or any of the custom types.

See Also

Reference

CreateTaskWithContentType Class

CreateTaskWithContentType Members

Microsoft.SharePoint.WorkflowActions Namespace