ComponentSpace Internet Time Class Library Reference

DaytimeClient.EndGetTime Method 

Completes the specified asynchronous get time operation.

[Visual Basic]
Public Function EndGetTime( _
   ByVal asyncResult As IAsyncResult _
) As String
[C#]
public string 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

DaytimeClient Class | ComponentSpace.InternetTime Namespace