共用方式為


SPWorkflowTaskProperties.OnBehalfReason Property

Gets or sets a string that represents the reason for sending the email message.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property OnBehalfReason As String
    Get
    Set
'Usage
Dim instance As SPWorkflowTaskProperties
Dim value As String

value = instance.OnBehalfReason

instance.OnBehalfReason = value
public string OnBehalfReason { get; set; }

Property Value

Type: System.String
A string that represents the reason for sending an email message.

Exceptions

Exception Condition
ArgumentException

The value is not a null reference (Nothing in Visual Basic) and is larger than the text field.

See Also

Reference

SPWorkflowTaskProperties Class

SPWorkflowTaskProperties Members

Microsoft.SharePoint.Workflow Namespace