Frame.NavigateToType(TypeName, Object, FrameNavigationOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
bool NavigateToType(TypeName const& sourcePageType, IInspectable const& parameter, FrameNavigationOptions const& navigationOptions);
public bool NavigateToType(System.Type sourcePageType, object parameter, FrameNavigationOptions navigationOptions);
function navigateToType(sourcePageType, parameter, navigationOptions)
Public Function NavigateToType (sourcePageType As Type, parameter As Object, navigationOptions As FrameNavigationOptions) As Boolean
Parameters
The page to navigate to, specified as a type reference to its partial class type. (A type reference is given as System.Type for Microsoft .NET, or a TypeName helper struct for Visual C++ component extensions (C++/CX)).
- parameter
-
Object
IInspectable
The navigation parameter to pass to the target page; must have a basic type (string, char, numeric, or GUID) to support parameter serialization using GetNavigationState.
- navigationOptions
- FrameNavigationOptions
Options for the navigation, including whether it is recorded in the navigation stack and what transition animation is used.
Returns
bool
false if a NavigationFailed event handler has set Handled to true; otherwise, true.
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|