ComponentSpace Internet Time Class Library Reference

NetworkTimeClient.EndGetTime Method 

Completes the specified asynchronous get time operation.

[Visual Basic]
Public Function EndGetTime( _
   ByVal asyncResult As IAsyncResult _
) As Date
[C#]
public DateTime EndGetTime(
   IAsyncResult asyncResult
);

Parameters

asyncResult
The IAsyncResult that identifies the asynchronous time operation to finish, and from which to retrieve an end result.

Return Value

The time.

Remarks

When the GetTimeCompleted event is raised, EndGetTime completes the operation that was initiated by the BeginGetTime call.

Exceptions

Exception Type Condition
InternetTimeException Thrown when the time cannot be received.

See Also

NetworkTimeClient Class | ComponentSpace.InternetTime Namespace