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

      public Task<string> OSVersionAsync()
    

Returns

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

Implements

OSVersionAsync(AsyncHandle)

Returns the version number of the operating system.

Declaration

      public 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>

Implements

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

Returns the version number of the operating system.

Declaration

      public 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

Implements

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!