| Visual Basic (Declaration) | |
|---|---|
<DebuggerStepThroughAttribute()> <AsyncStateMachineAttribute(Cocktail.Navigator+ | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Navigator Dim viewModelType As Type Dim contractName As String Dim parameter As Object Dim value As Task value = instance.NavigateToAsync(viewModelType, contractName, parameter) | |
| C# | |
|---|---|
[DebuggerStepThroughAttribute()] [AsyncStateMachineAttribute(Cocktail.Navigator+ | |
| C++/CLI | |
|---|---|
[DebuggerStepThroughAttribute()] [AsyncStateMachineAttribute(Cocktail.Navigator+ | |
Parameters
- viewModelType
- The type to match.
- contractName
- The name to match.
- parameter
- An optional parameter to be sent to the target view model. See INavigationTarget
Return Value
A System.Threading.Tasks.Task to await completion.Not available in Windows 8 Store apps.
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