Udostępnij za pośrednictwem


NavigatingCancelEventArgs Class

Definition

Provides data for the OnNavigatingFrom callback that can be used to cancel a navigation request from origination.

public ref class NavigatingCancelEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class NavigatingCancelEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class NavigatingCancelEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class NavigatingCancelEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class NavigatingCancelEventArgs
Public NotInheritable Class NavigatingCancelEventArgs
Inheritance
Object Platform::Object IInspectable NavigatingCancelEventArgs
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Cancel

Specifies whether a pending navigation should be canceled.

NavigationMode

Gets the value of the mode parameter from the originating Navigate call.

NavigationTransitionInfo

Gets a value that indicates the animated transition associated with the navigation.

Parameter

Gets the navigation parameter associated with this navigation.

SourcePageType

Gets the value of the sourcePageType parameter (the page being navigated to) from the originating Navigate call.

Applies to

See also