UriFormatException Constructors
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Initialiseert een nieuw exemplaar van de UriFormatException klasse.
Overloads
| Name | Description |
|---|---|
| UriFormatException() |
Initialiseert een nieuw exemplaar van de UriFormatException klasse. |
| UriFormatException(String) |
Initialiseert een nieuw exemplaar van de UriFormatException klasse met het opgegeven bericht. |
| UriFormatException(SerializationInfo, StreamingContext) |
Verouderd.
Initialiseert een nieuw exemplaar van de UriFormatException klasse van de opgegeven SerializationInfo en StreamingContext exemplaren. |
| UriFormatException(String, Exception) |
Initialiseert een nieuw exemplaar van de UriFormatException klasse met een opgegeven foutbericht en een verwijzing naar de binnenste uitzondering die de oorzaak van deze uitzondering is. |
UriFormatException()
Initialiseert een nieuw exemplaar van de UriFormatException klasse.
public:
UriFormatException();
public UriFormatException();
Public Sub New ()
Opmerkingen
De parameterloze constructor initialiseert een nieuw exemplaar van de UriFormatException klasse met alle velden die zijn ingesteld op null.
Van toepassing op
UriFormatException(String)
Initialiseert een nieuw exemplaar van de UriFormatException klasse met het opgegeven bericht.
public:
UriFormatException(System::String ^ textString);
public UriFormatException(string textString);
public UriFormatException(string? textString);
new UriFormatException : string -> UriFormatException
Public Sub New (textString As String)
Parameters
- textString
- String
De tekenreeks van het foutbericht.
Opmerkingen
De UriFormatException-constructor initialiseert het UriFormatException exemplaar met de Message eigenschap ingesteld op de waarde van textString.
Van toepassing op
UriFormatException(SerializationInfo, StreamingContext)
Let op
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initialiseert een nieuw exemplaar van de UriFormatException klasse van de opgegeven SerializationInfo en StreamingContext exemplaren.
protected:
UriFormatException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[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 UriFormatException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected UriFormatException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[<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 UriFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> UriFormatException
new UriFormatException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> UriFormatException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
Parameters
- serializationInfo
- SerializationInfo
Een SerializationInfo die de informatie bevat die nodig is om de nieuwe UriFormatExceptionte serialiseren.
- streamingContext
- StreamingContext
Een StreamingContext die de bron bevat van de geserialiseerde stroom die is gekoppeld aan de nieuwe UriFormatException.
- Kenmerken
Opmerkingen
Met deze constructor wordt de ISerializable interface voor de UriFormatException klasse geïmplementeerd.
Zie ook
Van toepassing op
UriFormatException(String, Exception)
Initialiseert een nieuw exemplaar van de UriFormatException klasse met een opgegeven foutbericht en een verwijzing naar de binnenste uitzondering die de oorzaak van deze uitzondering is.
public:
UriFormatException(System::String ^ textString, Exception ^ e);
public UriFormatException(string textString, Exception e);
public UriFormatException(string? textString, Exception? e);
new UriFormatException : string * Exception -> UriFormatException
Public Sub New (textString As String, e As Exception)
Parameters
- textString
- String
Het bericht waarin de uitzondering wordt beschreven. De aanroeper van deze constructor is vereist om ervoor te zorgen dat deze tekenreeks is gelokaliseerd voor de huidige systeemcultuur.
De uitzondering die de oorzaak is van de huidige uitzondering. Als de innerException parameter niet nullis, wordt de huidige uitzondering gegenereerd in een catch blok dat de binnenste uitzondering afhandelt.
Opmerkingen
Een uitzondering die wordt gegenereerd als direct resultaat van een vorige uitzondering, moet een verwijzing naar de vorige uitzondering in de InnerException eigenschap bevatten. De InnerException eigenschap retourneert dezelfde waarde die wordt doorgegeven aan de constructor of null als de InnerException eigenschap de binnenste uitzonderingswaarde niet aan de constructor levert.
In de volgende tabel ziet u de oorspronkelijke eigenschapswaarden voor een exemplaar van UriFormatException.
| Vastgoed | Waarde |
|---|---|
| InnerException |
null. |
| Message | De tekenreeks voor het foutbericht die is opgegeven in message. |