Share via


ProjectPropertyValues.ToDuration method

Sets the value that corresponds to the durationPropertyValue parameter in the PSWorkflowService methods that take property values as in-parameters.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
Public Shared Function ToDuration ( _
    arg As Object _
) As Integer
'Usage
Dim arg As Object
Dim returnValue As Integer

returnValue = ProjectPropertyValues.ToDuration(arg)
public static int ToDuration(
    Object arg
)

Parameters

  • arg
    Type: System.Object

    The value to set; an instance of either System.Int32 or the ProjectPropertyValues class.

Return value

Type: System.Int32
An integer.

See also

Reference

ProjectPropertyValues class

ProjectPropertyValues members

Microsoft.Office.Project.Server.Library namespace