共用方式為


CreateTaskWithContentType.SpecialPermissions Property

Gets or sets any special permissions that are associated with the new task list item.

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

Syntax

'Declaration
<ValidationOptionAttribute(ValidationOption.Optional)> _
Public Property SpecialPermissions As HybridDictionary
    Get
    Set
'Usage
Dim instance As CreateTaskWithContentType
Dim value As HybridDictionary

value = instance.SpecialPermissions

instance.SpecialPermissions = value
[ValidationOptionAttribute(ValidationOption.Optional)]
public HybridDictionary SpecialPermissions { get; set; }

Property Value

Type: System.Collections.Specialized.HybridDictionary
A list of special permissions that are associated with the newly created task list item.

Remarks

Special permissions can be used to restrict permissions to a specified task list item.

This property is promoted through a DependencyPropertyproperty.

If you provide a list of special permissions to the CreateTaskWithContentType activity, it will override any other permissions that have been inherited by the task list. If you do not set this property, permissions will be inherited from the task list.

HybridDictionary myTaskPermissions = new HybridDictionary();
myTaskPermissions.Add(taskProperties.AssignedTo, SPRoleType.Contributor);
this.CreateTaskWithContentType.SpecialPermissions = myTaskPermissions;
Dim myTaskPermissions As New HybridDictionary()
myTaskPermissions.Add(taskProperties.AssignedTo, SPRoleType.Contributor)
Me.CreateTaskWithContentType.SpecialPermissions = myTaskPermissions

See Also

Reference

CreateTaskWithContentType Class

CreateTaskWithContentType Members

Microsoft.SharePoint.WorkflowActions Namespace