Skip to main content Skip to complementary content

OSVersionAsync Method

Overloads

OSVersionAsync()

Returns the version number of the operating system.

OSVersionAsync(AsyncHandle)

Returns the version number of the operating system.

OSVersionAsync<T>(AsyncHandle, Func<Response, T>)

Returns the version number of the operating system.

OSVersionAsync()

Returns the version number of the operating system.

Declaration

      Task<string> OSVersionAsync()
    

Returns

Type Description
System.Threading.Tasks.Task<System.String>

OSVersionAsync(AsyncHandle)

Returns the version number of the operating system.

Declaration

      Task<string> OSVersionAsync(AsyncHandle asyncHandle)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

Returns

Type Description
System.Threading.Tasks.Task<System.String>

OSVersionAsync<T>(AsyncHandle, Func<Response, T>)

Returns the version number of the operating system.

Declaration

      Task<T> OSVersionAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.Func<Response, T> onResult

Continuation function

Returns

Type Description
System.Threading.Tasks.Task<T>

Type Parameters

Name Description
T

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!