Cocktail Help Reference
NavigateToAsync(Type,Object) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > Navigator Class > NavigateToAsync Method : NavigateToAsync(Type,Object) Method



viewModelType
The target ViewModel type.
parameter
An optional parameter to be sent to the target view model. See INavigationTarget

Glossary Item Box

Asynchronously navigates to an instance of the provided ViewModel type. The navigation will be cancelled if the current active ViewModel cannot be closed or the target type is not authorized.

Syntax

Visual Basic (Declaration) 
Public Overloads Function NavigateToAsync( _
   ByVal viewModelType As Type, _
   Optional ByVal parameter As Object _
) As Task
Visual Basic (Usage)Copy Code
Dim instance As Navigator
Dim viewModelType As Type
Dim parameter As Object
Dim value As Task
 
value = instance.NavigateToAsync(viewModelType, parameter)
C# 
public Task NavigateToAsync( 
   Type viewModelType,
   object parameter
)
C++/CLI 
public:
Task^ NavigateToAsync( 
   Type^ viewModelType,
   Object^ parameter
) 

Parameters

viewModelType
The target ViewModel type.
parameter
An optional parameter to be sent to the target view model. See INavigationTarget

Return Value

A System.Threading.Tasks.Task to await completion.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.