Share via


DraftTask.Duration property

Gets or sets the amount of time that it takes to complete a task.

Namespace:  Microsoft.ProjectServer.Client
Assembly:  Microsoft.ProjectServer.Client (in Microsoft.ProjectServer.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property Duration As String
    Get
    Set
'Usage
Dim instance As DraftTask
Dim value As String

value = instance.Duration

instance.Duration = value
[RemoteAttribute]
public string Duration { get; set; }

Property value

Type: System.String
A span of time.

Remarks

To get the TimeSpan value for the duration, use the DurationTimeSpan property.

See also

Reference

DraftTask class

DraftTask members

Microsoft.ProjectServer.Client namespace