INavigationContentLoader.BeginLoad Method


Begins asynchronous loading of the content for the specified target URI.

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

IAsyncResult BeginLoad(
	Uri targetUri,
	Uri currentUri,
	AsyncCallback userCallback,
	Object asyncState


Type: System.Uri
The URI to load content for.
Type: System.Uri
The URI that is currently loaded.
Type: System.AsyncCallback
The method to call when the content finishes loading.
Type: System.Object
An object for storing custom state information.

Return Value

Type: System.IAsyncResult
An object that stores information about the asynchronous operation.

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

This method is called by the navigation system to begin loading the content that corresponds to the targetUri value. The EndLoad method is typically called from the specified userCallback 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 can be null 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.

The asyncState parameter can be used to pass a custom object that can be retrieved from the argument passed to the userCallback method. This is primarily used for distinguishing between multiple BeginLoad method calls.


Supported in: 5, 4

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

Community Additions