InvalidNavigationException Constructors
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.
Overloads
| Name | Description |
|---|---|
| InvalidNavigationException() |
Creates a new InvalidNavigationException. |
| InvalidNavigationException(String) |
Creates a new InvalidNavigationException with a message. |
| InvalidNavigationException(SerializationInfo, StreamingContext) |
Obsolete.
|
| InvalidNavigationException(String, Exception) |
Creates a new InvalidNavigationException with a message and inner exception. |
InvalidNavigationException()
Creates a new InvalidNavigationException.
public:
InvalidNavigationException();
public InvalidNavigationException();
Public Sub New ()
Applies to
InvalidNavigationException(String)
Creates a new InvalidNavigationException with a message.
public:
InvalidNavigationException(System::String ^ message);
public InvalidNavigationException(string message);
new Microsoft.Maui.Controls.InvalidNavigationException : string -> Microsoft.Maui.Controls.InvalidNavigationException
Public Sub New (message As String)
Parameters
- message
- String
The exception message.
Applies to
InvalidNavigationException(SerializationInfo, StreamingContext)
Caution
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
protected:
InvalidNavigationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected InvalidNavigationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new Microsoft.Maui.Controls.InvalidNavigationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Maui.Controls.InvalidNavigationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
- context
- StreamingContext
- Attributes
Applies to
InvalidNavigationException(String, Exception)
Creates a new InvalidNavigationException with a message and inner exception.
public:
InvalidNavigationException(System::String ^ message, Exception ^ innerException);
public InvalidNavigationException(string message, Exception innerException);
new Microsoft.Maui.Controls.InvalidNavigationException : string * Exception -> Microsoft.Maui.Controls.InvalidNavigationException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The exception message.
- innerException
- Exception
The inner exception.