Поделиться через


ScriptUtilities.ConvertStringToTimeSpan Method (String)

 

Applies To: Windows Server Update Services

Converts a string with a formatted TimeSpan value to a TimeSpan.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

public TimeSpan ConvertStringToTimeSpan(
    string value
)
public:
TimeSpan ConvertStringToTimeSpan(
    String^ value
)
member ConvertStringToTimeSpan : 
        value:string -> TimeSpan
Public Function ConvertStringToTimeSpan (
    value As String
) As TimeSpan

Parameters

  • value
    Type: System.String

    The string with the formatted TimeSpan value.

Return Value

Type: System.TimeSpan

A TimeSpan with the value of the TimeSpan in the string.

See Also

ScriptUtilities Class
Microsoft.UpdateServices.Administration Namespace

Return to top