INavigationContentLoader.EndLoad Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Completes the asynchronous content loading operation.

Namespace:  System.Windows.Navigation
Assembly:  System.Windows.Controls.Navigation (in System.Windows.Controls.Navigation.dll)

Syntax

'Declaration
Function EndLoad ( _
    asyncResult As IAsyncResult _
) As LoadResult
LoadResult EndLoad(
    IAsyncResult asyncResult
)

Parameters

Return Value

Type: System.Windows.Navigation.LoadResult
An object that represents the result of the asynchronous content loading operation.

Remarks

Typically, you will not call this method directly unless you implement an alternative to the Silverlight navigation system.

The return value provides access to the loaded content or to a redirection URI.

This method is typically called by the navigation system from the userCallback delegate passed to the BeginLoad method to retrieve the loaded content or a redirection URI. In this case, the argument passed to the userCallback method is passed to the EndLoad method.

Alternately, the userCallback parameter of the BeginLoad method can be nulla null reference (Nothing in Visual Basic) and the EndLoad method can be called with the return value of the BeginLoad method. In this case, the EndLoad method will block until the operation completes.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.