Freigeben über


PageResourceContentLoader.BeginLoad Method

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

Begins asynchronous loading of the page that corresponds to the specified target URI.

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

Syntax

'Declaration
Public Function BeginLoad ( _
    targetUri As Uri, _
    currentUri As Uri, _
    userCallback As AsyncCallback, _
    asyncState As Object _
) As IAsyncResult
public IAsyncResult BeginLoad(
    Uri targetUri,
    Uri currentUri,
    AsyncCallback userCallback,
    Object asyncState
)

Parameters

  • targetUri
    Type: System.Uri
    The URI of the page to load.
  • currentUri
    Type: System.Uri
    The URI of the page that is currently loaded.
  • asyncState
    Type: System.Object
    An object for storing custom state information.

Return Value

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

Implements

INavigationContentLoader.BeginLoad(Uri, Uri, AsyncCallback, Object)

Remarks

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 called from the specified userCallback method to retrieve the loaded content. In this case, the argument passed to the userCallback method is passed to the EndLoad method.

The asyncState parameter is used to distinguish between multiple BeginLoad method calls.

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.